Answer the question
In order to leave comments, you need to log in
FileNotFoundError in python. How to fix?
I participate in the competition and at step 1 you just need to open and download, but already here it gives an error. I renamed the file both in the program and on the computer, I put the files that need to be imported into the folder with anacode, what's the problem?
from IPython.display import display
import pandas as pd
import matplotlib.pyplot as plt
import sklearn
plt.style.use('ggplot')
x = pd.read_csv('data/train.csv', index_col=0)
y = pd.read_csv('data/target.csv', index_col=0)['radiant_won']
Answer the question
In order to leave comments, you need to log in
put the file in the folder where the running ipython notebook is and call only by the file name
os.path.join ( goal_dir, filename)
the path to the target directory will save you - either define or prescribe from the root
Does the file name bother you in the error? File b'data/train.csv.csv' does not exist
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question