Answers for "max length of characters in dataframe's columns"

0

max length of characters in dataframe's columns

dict([(v, df[v].apply(lambda r: len(str(r)) if r!=None else 0).max())for v in df.columns.values])
Posted by: Guest on May-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language