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


Groups > comp.lang.python > #82736

Re: very weird pandas behavior

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'url:pypi': 0.03; 'yet.': 0.04; 'great.': 0.07; 'importerror:': 0.07; 'installed.': 0.07; 'responding': 0.07; 'sql,': 0.09; 'try:': 0.09; 'uninstalled': 0.09; 'vba,': 0.09; 'works.': 0.09; 'python': 0.11; 'suggest': 0.14; '2.7': 0.14; 'cmd': 0.16; 'fine.': 0.16; 'numpy': 0.16; 'pip?': 0.16; 'reinstalled': 0.16; 'stuff,': 0.16; 'sys.path': 0.16; 'url:pip': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'module': 0.19; 'things.': 0.19; 'entered': 0.20; 'import': 0.22; 'shell': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'comparing': 0.24; 'errors.': 0.24; 'sorry,': 0.24; 'versions': 0.24; "haven't": 0.24; 'looks': 0.24; 'this:': 0.26; 'downloaded': 0.26; 'header :In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'idea': 0.28; 'have,': 0.30; "i'm": 0.30; '"",': 0.31; 'directory,': 0.31; 'file': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; '(most': 0.33; 'checking': 0.33; 'guess': 0.33; 'could': 0.34; "can't": 0.35; 'advice': 0.35; 'december': 0.35; 'something': 0.35; 'but': 0.35; 'version': 0.36; 'right?': 0.36; 'doing': 0.36; 'url:org': 0.36; 'error.': 0.37; 'two': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'short': 0.38; 'anything': 0.39; 'recent': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'read': 0.60; 'simple,': 0.60; 'then,': 0.60; 'show': 0.63; 'pick': 0.64; 'more': 0.64; 'here': 0.66; '20,': 0.68; 'received:74.208': 0.68; 'dense': 0.84; 'have?': 0.84; 'preventing': 0.84; 'shell,': 0.91; 'subject:very': 0.91; 'confidence': 0.95
Date Sun, 21 Dec 2014 20:40:00 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version 1.0
To python-list@python.org
Subject Re: very weird pandas behavior
References <7a83719d-f39c-49ad-8df5-3d3d19c127b1@googlegroups.com> <ab864a83-4f0a-4ac6-8628-bd9e73a90cac@googlegroups.com>
In-Reply-To <ab864a83-4f0a-4ac6-8628-bd9e73a90cac@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:WI/+3knjqoe9NZgTzS9+GaA1dEnrZumUkROVGn8Btb6 K45/7qaqwHnbn+SI8VSzkfb2wSWJ/XL6cJ8TVakjpRtti6BimK tc2EVnyahAIFLOzEFwO0kF3ffNmG7EDSl3pnoA0wPv8+wdFGXf eGazpUWSj5lisd0IvLbMrTcaKsP7RpyWbDUbqIBKwdFroVviU3 yNv9BoaYmEKTKOYTNLeJudt3CA0Fuhy9uXUUdu/MnNUhiDll8x iTc2gVno8n2bTdHm3dmzzJP37Cacvbvicunfdx7S5m3QLKGRXv eAQVUBUl76pZrO3FQLj6tWYWsCoCAG0Z6JFjscsD6lXJDBgzSj iqDeYjp8ylOJf0bwfSr0=
X-UI-Out-Filterresults notjunk:1;
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17102.1419212417.18130.python-list@python.org> (permalink)
Lines 71
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1419212417 news.xs4all.nl 2834 [2001:888:2000:d::a6]:47652
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82736

Show key headers only | View raw


On 12/21/2014 08:01 PM, ryguy7272 wrote:
> On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote:
>> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this:
>> "pip install pandas"
>>
>> It looks like everything downloaded and installed fine.  Great.
>>
>> Now, in Python Shell, I enter this:
>> import pandas as pd
>>
>> I get this error.
>> Traceback (most recent call last):
>>    File "<pyshell#19>", line 1, in <module>
>>      import pandas as pd
>> ImportError: No module named pandas
>>
>>
>> Any idea what I'm doing wrong?
>
>
>
> Sorry for being so dense here guys!!  I do tons and tons of work with VBA, VB, C#, SQL, R, Matlab, and a little work with Pascal.
 > I guess that's preventing me from understanding how Python works. 
Sorry, but I just don't understand this thing.

Have you tried reading and responding to the advice you get?  Or do you 
just pick and choose?

>  I uninstalled Python27 and just reinstalled it.

What did you do with the other Python versions that you still haven't 
said whether you have?

>  I open the cmd prompt, and entered two short commands: 'pip install numpy' & 'pip install pandas'.

And they got "command not found" errors, right?  After all, you haven't 
installed PIP yet.  Or if you have, it might be left over from some 
other version of Python.

Have you read anything about PIP?  Have you read the web page:
    https://pypi.python.org/pypi/pip/

Perhaps you could try:
     pip show --files numpy

and see where they got installed.  Are they the same place as the Python 
2.7 you just installed?


>  Then, I got to Python Shell and enter this: 'import numpy' & 'import pandas'.  immediately I get errors.
>
> Traceback (most recent call last):
>    File "<pyshell#2>", line 1, in <module>
>      import numpy
> ImportError: No module named numpy
>
> Traceback (most recent call last):
>    File "<pyshell#3>", line 1, in <module>
>      import pandas
> ImportError: No module named pandas
>
> I guess if I can't do something simple, I can't do anything complex...or anything at all.
>

If I had any confidence that you were always running the same version of 
Python, from the same installation, then I could suggest more stuff, 
like checking out sys.path and comparing it to the place where PIP 
installed things.

-- 
DaveA

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


Thread

very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-20 07:46 -0800
  Re: very weird pandas behavior Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-21 13:22 +1100
  Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 04:44 -0800
    Re: very weird pandas behavior Dave Angel <davea@davea.name> - 2014-12-21 09:19 -0500
  Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 17:01 -0800
    Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-22 12:15 +1100
    Re: very weird pandas behavior Dave Angel <davea@davea.name> - 2014-12-21 20:40 -0500
  Re: very weird pandas behavior oldknackers@googlemail.com - 2014-12-21 17:25 -0800
  Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 18:07 -0800
    Re: very weird pandas behavior Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 02:51 +0000
  Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 18:09 -0800
  Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 18:25 -0800
    Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-22 13:50 +1100
    Re: very weird pandas behavior Rustom Mody <rustompmody@gmail.com> - 2014-12-21 18:53 -0800
      Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-22 00:16 -0800
    Re: very weird pandas behavior Steven D'Aprano <steve@pearwood.info> - 2014-12-22 04:11 +0000
    Re: very weird pandas behavior Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-22 15:50 -0500
  Re: very weird pandas behavior oldknackers@googlemail.com - 2014-12-21 22:21 -0800
  Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-22 07:55 -0800
    Re: very weird pandas behavior Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 16:39 +0000
    Re: very weird pandas behavior Dave Angel <davea@davea.name> - 2014-12-22 11:47 -0500
    Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-23 04:29 +1100
    Re: very weird pandas behavior Rick Johnson <rantingrickjohnson@gmail.com> - 2014-12-22 14:15 -0800
      Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-23 09:33 +1100
      Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-23 01:35 -0800
        Re: very weird pandas behavior Rick Johnson <rantingrickjohnson@gmail.com> - 2014-12-23 14:35 -0800
          Re: very weird pandas behavior Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-24 13:23 +1100
            Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-24 00:00 -0800
            Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-24 06:19 -0800
    Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-26 00:59 -0800

csiph-web