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
If your version of pandas is a recent version then you can just use the vectorised string method upper:
df['1/2 ID'] = df['1/2 ID'].str.upper()
This method does not work inplace, so the result must be assigned back.