I have a.xlsx and I have done some operations on it, and when I'm exporting it to a.csv format (to reduce time) using df.to_csv(output.csv, encoding='utf -l6-le') there is a special character '–' between texts in input file(.xlsx) column but on the output file(.csv), but it changes it to ''.
I have used other encodings, utf-8 and utf-32, as well, but they didn't work as well.
encoding type 'Windows-1252' is used for special characters.
Wiki for Windows-1252 is here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.