Answers for "convert the column of a dataframe into upper case"

1

python pandas change column values to all caps

# Creating 'columnB' that has Uppercase versions of all of columnA's values
df['columnB'] = df['columnA'].str.upper()
Posted by: Guest on July-22-2021
0

convert all colnames of dataframe to upper

data.columns = map(str.lower, data.columns)
Posted by: Guest on May-30-2021

Code answers related to "convert the column of a dataframe into upper case"

Python Answers by Framework

Browse Popular Code Answers by Language