My DataFrame looks something like this:
A, B
1, f
I've got a dictionary which looks like this:
{'M':[1,2,3]}
What i'd like to do is to add the dict into the Dataframe as a column:
A, B, C
1, f, {'M':[1,2,3]}
It's not important for the C column to be a dict i just need a key value pair where the value is an array.
Could someone explain to men how i could do this?
df.loc[0, 'C'] = {'M' : [1, 2, 3]}