It’s still most likely gzipped data. gzip’s magic number is 0x1f 0x8b
, which is consistent with the UnicodeDecodeError
you get.
You could try decompressing the data on the fly:
with open('destinations.csv', 'rb') as fd:
gzip_fd = gzip.GzipFile(fileobj=fd)
destinations = pd.read_csv(gzip_fd)
Or use pandas’ built-in gzip support:
destinations = pd.read_csv('destinations.csv', compression='gzip')