I would like to put all the dataframes' rows in lower case. I am considering multiple dataframes, so I am doing a for loop through them. I have tried as follows
for i, file in enumerate(files):
df[str(i)]= pd.read_csv(file)
df[str(i)].apply(lambda x: x.astype(str).str.lower())
but unfortunately it is not returning rows in lower case. I have follower the answer given in a previous post: Convert whole dataframe from lower case to upper case with Pandas
Could you please tell me what it is wrong in the code above? Thanks