MCPcopy Create free account
hub / github.com/geekcomputers/Python / createDataSet

Function createDataSet

Colors/pixel_sort.py:35–41  ·  view source on GitHub ↗
(val=0, data=[])

Source from the content-addressed store, hash-verified

33
34# Create dataframe and save it as an excel file
35def 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

Callers 2

generateColorsFunction · 0.85
measureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected