(val=0, data=[])
| 33 | |
| 34 | # Create dataframe and save it as an excel file |
| 35 | def createDataSet(val=0, data=[]): |
| 36 | global dict |
| 37 | dict[len(data)] = data |
| 38 | if val != 0: |
| 39 | if val == max(dict.keys()): |
| 40 | final_df = pd.DataFrame(dict[val], columns=["Blue", "Green", "Red"]) |
| 41 | final_df.to_excel("Image_sort/" + str(args.f) + "/" + "output.xlsx") |
| 42 | |
| 43 | |
| 44 | # Generating colors for each row of the frame |
no outgoing calls
no test coverage detected