I am new in coding. I am doing the data science path, currently in module introduction to pandas.
I download Jupiter Notebook using Anaconda.
I tried to change all the strings of one column to uppercase or lowercase, but I received the error: “AttributeError: module ‘string’ has no attribute ‘lower’.”
I tried with “upper” instead of “lower” and I received the same error.
I tried: from string import upper and returns:
ImportError: cannot import name ‘upper’ from ‘string’ (C:\Users\gustavo\anaconda3\lib\string.py)
Then I tried import string and I didn’t receive any error but when I tried: df[‘estado’] = df.estado.apply[string.upper], I have the error: AttributeError: module ‘string’ has no attribute ‘upper’.
I have checked many videos on youtube and I have googled the error but I don’t know how to resolve it.
Can someone help me?