This is My Column:
ReviewText
Absolutely wonderful silky and..
Love this dress! it is so pretty...
I had such high hopes for...
I wanted to create a new column called Avg_length that would include the average length of words in the ReviewText column...
I wrote this following code to split the string after every whitespace:
df['Avg_length'] = df["Review Text"].apply(lambda x: len(x.split()))
Now how to calculate average?
Thanks in advance...