I'm currently trying to reduce a large list down in size by removing irrevelent data. I'm currently using
with open("list.txt") as f_line:
for line in f_line:
Doing_things()
It is currently working with a smaller scale file but when the larger main file is used it gives the following error.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3656: ordinal not in range(128)
Is there another way to read the list into python. Also the file has over 10000 single data points for the list. Thanks for your help.