I actually know many ways to do this in Pandas Dataframe and Series with dtype like float, But how can I make it work with Series containing dtype list?
For example, I want to :
series = pd.Series([[1,2],[2,3,4],[4,6]])
series is like:
0 [1, 2]
1 [2, 3, 4]
2 [4, 6]
dtype: object
I want to have rows with it's length longer than 2, which is actually row 1. I tried:
series[len(series) > 2]
and
series[series.apply(lambda x : len(x) > 1)]
Both are not working.