File exists but Python says 'not found'.

Antoon Pardon antoon.pardon at rece.vub.ac.be
Mon Jul 1 07:15:12 EDT 2013


Op 01-07-13 12:57, prerit86 at gmail.com schreef:
> The variable 'train' is being called like this ->
>
> def main(train='train.csv', test='test.csv', submit='logistic_pred.csv'):    
>     print "Reading dataset..."
>     train_data = pd.read_csv(train)
>     test_data = pd.read_csv(test)
>
> Let me know if I need to post the full code.

I think Robert wanted to know how you started the program.
What instruction do you use to launch?
In what directory are you launching your program?
Is that the same directory where train.csv is present?



More information about the Python-list mailing list