9

I'm a newbie who are interested in Machine Learning using Python. So I downloaded a dataset from https://data.world/nrippner/ols-regression-challenge and tried to read the dataset using

dataset = pd.read_csv('cancer_reg.csv').

But that error message came up. What should I do?

2 Answers2

6

Usually these type of issues arise because of the encoding. You can try using these two parameters in combination and it should probably work. I'm using latin1 because of the 0x1f you provide in your error.

dataset = pd.read_csv('cancer_reg.csv',engine='python',encoding='latin1')
Celius Stingher
  • 17,835
  • 6
  • 23
  • 53
1

Try the following

dataset = pd.read_csv('cancer_reg.csv',encoding = "ISO-8859-1")
Arjun Bhasin
  • 93
  • 10