I wanted to know if there's a way to ignore it if the latin1 can't encode and ignore the errors?
This when I'm going to save to a csv file
I wanted to know if there's a way to ignore it if the latin1 can't encode and ignore the errors?
This when I'm going to save to a csv file
You can pass the keyword argument errors='ignore'
to the DataFrame.to_csv
method to ignore encoding/decoding errors. More info can be found in the documentation.