Skip to content
Advertisement

how to deal with multiple lists inside multiple column in df?

I have a df like this

JavaScript

and I want to convert it to

JavaScript

How can I achieve this?

I tried to apply pd.series and I got an output like this

JavaScript

I am not sure how to proceed next. Can anyone help please?

Advertisement

Answer

try via DataFrame() method and apply():

JavaScript

Finally:

JavaScript

Now If you print out you will get your expected output

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement