max length of characters in dataframe 27s columns

Solutions on MaxInterview for max length of characters in dataframe 27s columns by the best coders in the world

showing results for - "max length of characters in dataframe 27s columns"
Ilyana
21 May 2019
1dict([(v, df[v].apply(lambda r: len(str(r)) if r!=None else 0).max())for v in df.columns.values])
2