I'm trying to make a pandas DF from a csv file, but I'm getting a decoding error upon attempting to run the script.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 7: invalid start byte
During handling of the above exception, another exception occurred:
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-6-b08d34b86a52> in <module>
----> 1 raw_data = pd.read_csv("D:\\Data\\anon\\anon_Logs\\anon_logs.csv", sep=',', low_memory=False)
2 display(raw_data)
I understand that this can happen when there is an invalid character present, but is this talking about the character being present in the csv itself or am I writing something wrong? The only line I'm trying to execute there is the one written above, a simple read_csv.
How could I go around this? It's the first time I have issues making a DF from a csv.