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..!!

Bhawna TutejaPosted Feb 9, 2020, 10:48 PM
Jaimin ShethiyaPosted Feb 6, 2020, 11:38 PM
try to below code.
var value = System.Text.RegularExpressions.Regex.Replace("your string", @"[^0-9a-zA-Z]+", string.Empty);
Thanks
Amit MohantyPosted Feb 6, 2020, 10:12 PM