3
Answers

I would like to remove special characters from a string

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)