I have the following df:
A B C
1 NaN NaN
2 NaN NaN
3 NaN NaN
4 NaN NaN
I want this:
A B C
1 'Blue' 'Purple'
2 'Yellow' 'Yellow'
3 'Green' 'Orange'
4 'Blue' 'Brown'
What I have tried to do:
df1.B = ['Blue', 'Yellow', 'Green', 'Blue']
df1.C = ['Purple', 'Yellow', 'Orange', 'Brown']
But i get the following error:
ValueError: Length of values does not match length of index
But there are the same number of colors in the list as in the df.
Please help.