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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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