Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this may be helpful dictionary to get color tuple code, I generated this using my very own algo using your colors.csv file by applying pandas inbuilt function.
I request you to please merge my pull request in your repo. !!!
algo is:
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/codebrainz/color-names/master/output/colors.csv')
dbox, rbox = {}, []
for i in range(df.shape[0]):
row = list(df.iloc[i])
crgb = c, rgb = row[0], (row[3], row[4], row[5])
rbox.append(rgb)
dbox.update({rgb : c})
rbox.sort()
cbox = []
for m in range(len(rbox)):
cbox.append(dbox.get(rbox[m]))
fdict = {}
for n in range(len(rbox)):
fdict.update({cbox[n] : rbox[n]})
print(fdict)