I have a dataframe in pandas like this:
List
2013-12-22 15:25:02 [good morning, good afternoon, good evening]
2009-12-14 14:29:32 [happy new year, happy birthday,]
2013-12-22 15:42:00 [happy, sad, mad, chill]
how do I get something like this
List Len
2013-12-22 15:25:02 [good morning, good afternoon, good evening] 3
2009-12-14 14:29:32 [happy new year, happy birthday,] 2
2013-12-22 15:42:00 [happy, sad, mad, chill] 4
I tried df['List'].str.len(), but it returns the length in terms of how many words are in this list.