Published
- 1 min read
number of total words in cell pandas
The solution for this is noted below
number of total words in cell pandas
Solution
df["WANTED_COLUMN"].apply(lambda x: len(str(x).split(' ')))
Try other methods by searching on the site. That is if this doesn’t work