I have a dataframe
created from list of lists:
A B
0 ['a', 'b', 'c'] ['x', 'y']
1 ['e', 'f', 'g', 'h'] ['q', 'r']
...
and i want to adjust the lenghts of lists in column 'B'
to match those from column 'A'
by adding elements at the ends of lists in 'B'
. How can I do that?
here is how I would do it with Pandas: