I'm trying to drop rows of a dataframe if the size of the array in a column is not the right one.
This is what I have:
df= df.drop(df[(df['col'].df.len() != 100)].index)
But it outputs the actual rows where the conditions is met and then it says KeyError:0
type(df['col']) is <class 'pandas.core.series.Series'>
df['col'][0] = [0.0059561 0. 0.0043337 ... 0.00520846 0. 0.01370436]