I am trying to read a txt file from a url:
df = pd.read_csv(url, sep = "@#$", header = None, engine = 'python')
But I get the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9b in position 3706: invalid start byte
I tried the following based on solutions I found online:
error_bad_lines = False
encoding = 'utf_8'
encoding = 'utf_16'
I tried the answer in this link . But I get the following error when I try that:
TypeError: Expected object of type bytes or bytearray, got: <class 'http.client.HTTPResponse'>
But nothing is working. Any other ideas?