Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36273
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Newbie problem with Python pandas |
| Date | 2013-01-06 12:32 -0500 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-413E29.12322906012013@news.panix.com> (permalink) |
| References | <8qSdnfYwI8QgH3TNnZ2dnUVZ_uadnZ2d@giganews.com> <733a78da-9393-4712-8255-a9942a5052b3@googlegroups.com> <_dudnTTyxduONXTNnZ2dnUVZ_oCdnZ2d@giganews.com> <roy-72AA86.11453406012013@news.panix.com> <_dudnTfyxdvcLHTNnZ2dnUVZ_oCdnZ2d@giganews.com> |
In article <_dudnTfyxdvcLHTNnZ2dnUVZ_oCdnZ2d@giganews.com>, RueTheDay <nospam@nospam.com> wrote: > On Sun, 06 Jan 2013 11:45:34 -0500, Roy Smith wrote: > > > In article <_dudnTTyxduONXTNnZ2dnUVZ_oCdnZ2d@giganews.com>, > > RueTheDay <nospam@nospam.com> wrote: > > > >> On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote: > >> > >> > On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote: > >> >> I am getting the following error when running on Python 2.7 on > >> >> Ubuntu 12.04: > >> >> >>>>>> > >> >> >>>>>> > >> >> AttributeError: 'Series' object has no attribute 'str' > >> > I would *guess* that you have an older version of pandas on your > >> > Linux machine. > >> > Try "print(pd.__version__)" to see which version you have. > >> > > >> > Also, trying asking over at > >> > https://groups.google.com/forum/?fromgroups=#!forum/pydata which is > >> > more dedicated to pandas. > >> > >> Thank you! That was it. I had 0.7 installed (the latest in the Ubuntu > >> repository). I downloaded and manually installed 0.10 and now it's > >> working. Coincidentally, this also fixed a problem I was having with > >> running a matplotlib plot function against a pandas Data Frame (worked > >> with some chart types but not others). > >> > >> I'm starting to understand why people rely on easy_install and pip. > >> Thanks again. > > > > Yeah, Ubuntu is a bit of a mess when it comes to pandas and the things > > it depends on. Apt gets you numpy 1.4.1, which is really old. Pandas > > won't even install on top of it. > > > > I've got pandas (and numpy, and scipy, and matplotlib) running on a > > Ubuntu 12.04 box. I installed everything with pip. My problem at this > > point, however, is I want to replicate that setup in EMR (Amazon's > > Elastic Map-Reduce). In theory, I could just run "pip install numpy" in > > my mrjob.conf bootstrap, but it's a really long install process, > > building a lot of stuff from source. Not the kind of thing you want to > > put in a bootstrap for an ephemeral instance. > > > > Does anybody know where I can find a debian package for numpy 1.6? > > Go here: > > http://neuro.debian.net/index.html#how-to-use-this-repository > > and add one their repositories to your sources. > > Then you can do use apt-get to install ALL the latest packages on your > Ubuntu box - numpy, scipy, pandas, matplotlib, statsmodels, etc. > > I wish I found this a few days ago. Cool, thanks! Really glad you're a few days ahead of me :-)
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Newbie problem with Python pandas RueTheDay <nospam@nospam.com> - 2013-01-06 07:57 -0600
Re: Newbie problem with Python pandas Miki Tebeka <miki.tebeka@gmail.com> - 2013-01-06 08:05 -0800
Re: Newbie problem with Python pandas RueTheDay <nospam@nospam.com> - 2013-01-06 10:36 -0600
Re: Newbie problem with Python pandas Roy Smith <roy@panix.com> - 2013-01-06 11:45 -0500
Re: Newbie problem with Python pandas RueTheDay <nospam@nospam.com> - 2013-01-06 11:15 -0600
Re: Newbie problem with Python pandas Roy Smith <roy@panix.com> - 2013-01-06 12:32 -0500
csiph-web