Skip to content
Advertisement

Find colums that contains lists

I have a huge pandas dataframe 150000 x 330 and I well find columns that have lists []

I have tried

JavaScript

but it only returns column names.

JavaScript

Advertisement

Answer

You can try:

JavaScript

Demo

JavaScript

You can also find the list of columns with list as follows:

JavaScript

Output:

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