Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'received:134': 0.05; 'subject:Python': 0.06; 'def': 0.12; 'program?': 0.16; "subject:'.": 0.16; 'subject:File': 0.16; 'subject:exists': 0.16; 'test_data': 0.16; 'code.': 0.18; 'variable': 0.18; 'print': 0.22; 'header:User-Agent:1': 0.23; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'instruction': 0.29; 'robert': 0.30; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'full': 0.61; 'email addr:gmail.com': 0.63; 'subject:found': 0.93 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAN5i0VGGuA9G/2dsb2JhbABawxyBFIMYAQUnURELIRYPCQMCAQIBDzYTBgICh3kDD7JtDUuIB4x1gnAWg1EDlWGBZ4YOhhKFJYMT Date: Mon, 01 Jul 2013 13:15:12 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: File exists but Python says 'not found'. References: <5c1d1e47-b67e-4bce-8601-b14c0215f450@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372677314 news.xs4all.nl 15910 [2001:888:2000:d::a6]:36339 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49549 Op 01-07-13 12:57, prerit86@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?