The title explains the main issue, but let me elaborate. Let's say I have two CSV files - `csv1` and `csv2`. They each look like this:

`csv1`:

[![enter image description here](https://i.stack.imgur.com/nGr2b.png)](https://i.stack.imgur.com/nGr2b.png)

and `csv2`:

[![enter image description here](https://i.stack.imgur.com/ANTEm.png)](https://i.stack.imgur.com/ANTEm.png)

The problem is that when I run `pd.read_csv('./csv1.csv')` it works fine, but when I run `pd.read_csv('./csv2.csv')` I get a

```
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 73: invalid start byte

```

The difference between the two CSV files is that `csv2` is basically `csv1` but with the dates sorted in ascending order. The operations that I did to achieve that are:

```
csv2 = csv1.sort_values(by=['date'])

csv2.to_csv('./Data/csv_final.csv', index=False)

```

Does anybody know what the problem is? I've tried looking at other solutions and many people suggest to try specifying a different encoding scheme when running `pd.read_csv()` but I'm just curious as to what the problem may be caused by.

Thank you.