Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49549

Re: File exists but Python says 'not found'.

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 <antoon.pardon@rece.vub.ac.be>
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 <antoon.pardon@rece.vub.ac.be>
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> <e43b906e-a587-4711-8f60-a5e25d4f00c7@googlegroups.com>
In-Reply-To <e43b906e-a587-4711-8f60-a5e25d4f00c7@googlegroups.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4064.1372677314.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


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?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

File exists but Python says 'not found'. prerit86@gmail.com - 2013-07-01 03:47 -0700
  Re: File exists but Python says 'not found'. Robert Kern <robert.kern@gmail.com> - 2013-07-01 11:56 +0100
  Re: File exists but Python says 'not found'. prerit86@gmail.com - 2013-07-01 03:57 -0700
    Re: File exists but Python says 'not found'. Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-07-01 13:15 +0200
      Re: File exists but Python says 'not found'. prerit86@gmail.com - 2013-07-01 04:32 -0700
  Re: File exists but Python says 'not found'. Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-07-01 12:59 +0200
    Re: File exists but Python says 'not found'. prerit86@gmail.com - 2013-07-01 04:00 -0700
      Re: File exists but Python says 'not found'. Dave Angel <davea@davea.name> - 2013-07-01 07:38 -0400
        Re: File exists but Python says 'not found'. prerit86@gmail.com - 2013-07-01 05:17 -0700

csiph-web