How to calculate average work length of a Pandas series of long strings

I have a series that comes from a Pandas DataFrame

19607    uhmm i guess i start wit my name.. trung<br />...
6205     you could say my interests revolve around tech...
57858    i always find it difficult to sum myself up wi...
29471    loyal, witty, silly, understanding, dedicated,...
47277    so basically, i hate these "fill in your own w...
25535    i am ending a relationship with a woman right ...
51731    i work and live in san francisco. i enjoy what...
19106    i love being outside when the sun is out. i <a...
18594    i've met someone and am in a long-term relatio...
7326     humanitarian, teamplayer, great work ethic, re...

I want to calculate the average word length of each row. How do I go about achieving it?



Read more here: https://stackoverflow.com/questions/64409665/how-to-calculate-average-work-length-of-a-pandas-series-of-long-strings

Content Attribution

This content was originally published by tainangao at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: