I have column which consits of values that are lists and some of them are not. I would like to get dataframe that only consists of rows(so drop non list rows) that have list values. Current DF column:
Column
["a", "b", "c"]
["a"]
a
b
["cc", "dd"]
Result:
Column
["a", "b", "c"]
["a"]
["cc", "dd"]
[row for row in df['Column'] if isinstance(row, list)]is going to be faster than using apandasmethod