I have a pandas dataframe with one of the column as a list:
df =
list_column
0 [a b c d ...]
1 [a b c d ...]
2 [b a c d ...]
... ...
How to check if list in all the rows for list_column
are identical? In the above example, expected output is False
because row 2 has a different list. Lists should be identical in the order in which the elements are present and not just merely the elements themselves.
I tried the solution from here: It gives me an error:
AttributeError: 'bool' object has no attribute 'all'