I have a column in a pandas dataframe that is all capitals. I would like to change this to words with only the first letter capitalized.
I have tried the following:
import pandas as pd
data = pd.read_csv('my_file.csv')
data['field'] = data['field'].title()
This returns the error:
'Series' object has no attribute 'title'
Is there a simple way to perform string operations like this on a pandas column?