pandas srt.lower() not working on dataframe column
问题 I'm working with the Titanic dataset available from Kaggle. I have it in a dataframe and i want to change the case of the "sex" column to lowercase. I'm using the following code import pandas as pd df = pd.read_csv('titanic.csv') print dfFull['sex'].unique() df.sex.str.lower() #check if it worked print df['sex'].unique() and also trying df['sex'].str.lower() but when I run df['sex'].unique() I get three unique values [male, female, Female] . Why does my code not lower the case of the strings