I have a dataframe that looks like:
| words |
|---|
| Atlántica |
| Común |
| Guión |
and I want to remove all accents from each elemnt.
What I'm doing is:
from unidecode import unidecode
unidecode.unidecode(df['words'])
as a result I'm obtaining an error message that says:
'function' object has no atribute 'unidecode'
Can anyone help me? Regards
You're importing
unidecodeand then calling it again as an attribute. Try this:Based on the error (
'Series' object hast no attribute 'encode') you're getting after trying this, my guess would be this should work: