I have two lists
Countrylist = ['USA', 'INDIA', 'SINGAPORE','CHINA','MALAYSIA']
COLORLIST = ['#F1F326', '#D95969', '#D4526E', '#250591', '#FDBB2B']
and I have a df with 4 columns:
Country Category AVGSPEED AVGVELOCITY
USA High 345 4634
INDIA Low 4363 435346
USA Low 345 346346
CHINA High 3462 23423
CHINA Medium 46346 46346
I want add a new column to the dataframe such that the color from the list gets mapped to the country seen in the dataframe. One way am thinking is creating a dict between the two lists, and then mapping the key value to the country column in the dataframe.