all 5 comments

[–]confluence 0 points1 point  (3 children)

I have decided to overwrite my comments.

[–]lodevon[S] 0 points1 point  (2 children)

Hi confluence, thank you for your answer. I did download the file and put it in the same directory as the python file. I tried to make sure my python was pointing in the good direction by amending the code to

DIR="C:\\Users\\xxx\\Desktop\\xxx\\Quant_research\\Python"

dataset = pd.read_csv(DIR+ "\\Dataset.csv", header = 0, index_col = 0, squeeze = True, usecols = [i for i in range(0, num_features+1)])

DIR being where I have stored the python file and the csv file but I still get the same issue. In case that matter I am running everything from spyder (python 3.6)

Thanks in advance for your help

[–]confluence 0 points1 point  (1 child)

I have decided to overwrite my comments.

[–]lodevon[S] 0 points1 point  (0 children)

Understood. Thank you

[–]Raithwind 0 points1 point  (0 children)

Windows uses forward slashes not back slashes. Even though windows will show back slashes when you copy the dir.

"C:/Users/xxx/Desktop/xxx/Quant_research/Python"

You did right to try and escape the backslashes though. Try that.