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.
errors was added since version 1.1.0.
latin1if this encoding doesn't contain all chars you need? Choose encoding which fits your requirements.