Ramon Quintana

Ramon Quintana

  • NA
  • 404
  • 65.9k

I would like to remove special characters from a string

Feb 6 2020 2:01 PM
I would like to remove special characters from a string into a .CSV file..
 
I used this command:  hist_data_frame.encode('raw_unicode_escape').decode('utf-8')
 
but i got this error:
 
AttributeError: 'DataFrame' object has no attribute 'encode'
 
what's wrong here???
 
or exists any other way to avoid to incresing strings into a .csv file due to specials characters like:
 
á, é , í, ó, ú , etc
 
thanks out there..!!
 
 

Answers (3)