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')
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')
capitalise words in a column pandas
#Cap all words in a string
df.Column1.str.title()
convert all colnames of dataframe to upper
data.columns = map(str.lower, data.columns)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us