Answers for "how to convert columns of dataframe to uppercase"

1

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')
Posted by: Guest on November-13-2020
0

convert all colnames of dataframe to upper

data.columns = [x.lower() for x in data.columns]
Posted by: Guest on May-30-2021

Code answers related to "how to convert columns of dataframe to uppercase"

Python Answers by Framework

Browse Popular Code Answers by Language