I\'m having trouble applying upper case to a column in my DataFrame.
dataframe is df.
df
1/2 ID is the column head that need to apply
1/2 ID
This should work:
df['1/2 ID'] = map(lambda x: str(x).upper(), df['1/2 ID'])
and should you want all the columns names to be in uppercase format:
columns
df.columns = map(lambda x: str(x).upper(), df.columns)