Published
- 1 min read
find max length in string in pandas dataframe
The solution for this is noted below
find max length in string in pandas dataframe
Solution
df.text.map(lambda x: len(x)).max()
#or
df['text_corrected'].max()
Try other methods by searching on the site. That is if this doesn’t work