Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas convert all column names to lowercase

# rename Pandas columns to lower case
df.columns= df.columns.str.lower()
df.columns
Index(['column1', 'column2', 'column3'], dtype='object')
Source by cmdlinetips.com #
 
PREVIOUS NEXT
Tagged: #pandas #convert #column #names #lowercase
ADD COMMENT
Topic
Name
1+9 =