Hi I have a dataframe like this:
ColA ColB
a 0
b 1
c 2
I want to append list_a = [ 0,1 ] to where column A == a and append list_c = [ 0, 1, 2 ] to where column A == c. Final should look something like this:
ColA ColB
a 0 0 1 Nan
b 1 Nan Nan Nan
c 2 0 1 2
How can I do this? Thank you.