Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas df represent a long column name with short name

df.columns = df.columns.str.strip().str.lower().str.replace(' ', '_').str.replace('(', '').str.replace(')', '')
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #pandas #df #represent #long #column #short
ADD COMMENT
Topic
Name
5+9 =