I am trying to lowercase one of the columns(A_description) of a dataframe(df) and getting the error-"'Column' object is not callable".
Code: def new_desc():
for line in df:
line = df['A_description'].map(str.lower)
return line
new_desc()
Have used the following methods:
.str.lower()
.apply(str.lower)
.apply(lambda x: x.lower())
.map(str.lower)
All gave the same error.