Skip to content

pandas appears to crash doing pivot table from 10 minute examples #3922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rmschne opened this issue Jun 16, 2013 · 53 comments
Closed

pandas appears to crash doing pivot table from 10 minute examples #3922

rmschne opened this issue Jun 16, 2013 · 53 comments
Labels
Milestone

Comments

@rmschne
Copy link

rmschne commented Jun 16, 2013

pandas 0.11.0 installed with Python 2.7.2 using "pip install pandas" on fully patched mac osx 10.8.5, running in a virtual environment. running any pivot table against any DataFrame create so for -- nothing happens. pressing ctrl-c I see the latest lines run are:

422         while com._long_prod(sizes) >= 2 ** 63:
423             i = len(sizes)

--> 424 while com._long_prod(sizes[:i]) >= 2 ** 63:
425 i -= 1

The problem is reproducible using http://pandas.pydata.org/pandas-docs/stable/10min.html and running:

from pandas import DataFrame, Series
import pandas as pd
import numpy as np

then running lines [97], [98], and [99] in iPython and Python native.

I can't see any way to debug or go further.

@cpcloud
Copy link
Member

cpcloud commented Jun 17, 2013

can u put up the exact steps u used to create the virtualenv and build pandas?

@rmschne
Copy link
Author

rmschne commented Jun 17, 2013

to build pandas, I used the command "pip install pandas".

To install the virtualenv, it was so long ago I cannot remember. I just followed the simple instructions they provide. To create the virtualenv i run the command "source /users/rmschne/.virtualenv/rmspython/bin/activate".

Is there a "right" way for pandas to work? I did not notice anything special in docs.

Update: I looked in my records, and I used http://docs.python-guide.org/en/latest/starting/install/osx.html for how to install virtualenv, pip, etc.

@cpcloud
Copy link
Member

cpcloud commented Jun 18, 2013

Did you install Cython? I don't think pandas installs it by default.

@rmschne
Copy link
Author

rmschne commented Jun 18, 2013

I did not install Cython. per http://pandas.pydata.org/pandas-docs/stable/install.html#dependencies it is "Only necessary to build development version. Version 0.17.1 or higher".

However, I just installed it with "pip install cython" and it appeared to be successful.

then, running:

import pandas as pd
import numpy as np
dates = pd.date_range('20130101',periods=6)
df=pd.DataFrame(np.random.randn(6,4),index=dates,columns=list('ABCD'))
pd.pivot_table(df,values='D',rows=['A','B'], cols=['C'])

The session hangs. No error message. ctrl-c returns:

File "", line 1, in
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py", line 106, in pivot_table
table = agged.unstack(to_unstack)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/frame.py", line 3971, in unstack
return unstack(self, level)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 365, in unstack
return _unstack_multiple(obj, level)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 266, in _unstack_multiple
unstacked = dummy.unstack('placeholder')
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/frame.py", line 3971, in unstack
return unstack(self, level)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 369, in unstack
return _unstack_frame(obj, level)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 407, in _unstack_frame
value_columns=obj.columns)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 76, in init
self._make_sorted_values_labels()
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 87, in _make_sorted_values_labels
comp_index, obs_ids = get_compressed_ids(to_sort, sizes)
File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 425, in get_compressed_ids
i -= 1

@cpcloud
Copy link
Member

cpcloud commented Jun 18, 2013

you're right you don't need it my bad

@cpcloud
Copy link
Member

cpcloud commented Jun 18, 2013

here's what you should do, if you're up for it, since i can't reproduce this on the latest master or on pandas from PyPI:

  1. install ipython if you haven't already
  2. put the above example into a file
  3. start up ipython and type run -d the_file_where_you_saved_the_above_example.py
  4. step through the example using some combination of s (step) and n (next) until you find the point at which the hang occurs.
  5. report back with one or some of the location/filename/line number where it hangs.

@rmschne
Copy link
Author

rmschne commented Jun 18, 2013

hang is here:

ipdb> n

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py(103)pivot_table()
102 table = agged
--> 103 if table.index.nlevels > 1:
104 to_unstack = [agged.index.names[i]

ipdb> n

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py(104)pivot_table()
103 if table.index.nlevels > 1:
--> 104 to_unstack = [agged.index.names[i]
105 for i in range(len(rows), len(keys))]

ipdb> n

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py(105)pivot_table()
104 to_unstack = [agged.index.names[i]
--> 105 for i in range(len(rows), len(keys))]
106 table = agged.unstack(to_unstack)

ipdb> n

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py(105)pivot_table()
104 to_unstack = [agged.index.names[i]
--> 105 for i in range(len(rows), len(keys))]
106 table = agged.unstack(to_unstack)

ipdb> n

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py(106)pivot_table()
105 for i in range(len(rows), len(keys))]
--> 106 table = agged.unstack(to_unstack)
107

ipdb>

HANG FROM HERE

@cpcloud
Copy link
Member

cpcloud commented Jun 19, 2013

can u try just a simple

In [1]: df = DataFrame(randn(60000, 4))

In [2]: df.unstack()
Out[2]:
0  0    -0.395
   1    -0.633
   2     0.651
   3    -2.116
   4    -0.687
   5     0.350
   6    -0.445
   7     0.262
   8     1.306
   9    -1.451
   10   -0.312
   11   -0.676
   12   -0.035
   13   -1.226
   14    0.119
...
3  59985   -2.490
   59986    0.891
   59987   -0.081
   59988   -0.180
   59989   -0.767
   59990    1.075
   59991    0.301
   59992   -0.627
   59993    2.084
   59994    0.221
   59995   -1.321
   59996   -0.341
   59997   -0.843
   59998   -0.121
   59999    0.238
Length: 240000, dtype: float64

@rmschne
Copy link
Author

rmschne commented Jun 19, 2013

thanks for staying with me. got same:

import pandas as pd
import numpy as np
df=pd.DataFrame(np.random.randn(60000,4))
df.unstack()
0 0 0.564648
1 -1.859481
2 -0.082655
3 -0.349804
4 -0.180945
5 1.545953
6 -1.253212
7 0.283621
8 -1.554463
9 0.677267
10 -0.154183
11 -0.765514
12 -0.271065
13 -1.162593
14 0.099856
...
3 59985 -0.314345
59986 -1.854728
59987 -1.411842
59988 0.837962
59989 1.780513
59990 -1.535803
59991 0.064691
59992 0.326311
59993 -1.609834
59994 0.919482
59995 0.499292
59996 1.141393
59997 -0.440700
59998 -0.755849
59999 1.166247
Length: 240000, dtype: float64

@cpcloud
Copy link
Member

cpcloud commented Jun 19, 2013

ok so now try df.unstack(0)...does that work?

@cpcloud
Copy link
Member

cpcloud commented Jun 19, 2013

few more things

  1. build the latest git master and see if the problem is alleviated
  2. if the issue exists after that it might be something with libraries specific to mac

so far git master builds and runs on windows (i think 7 is what ppl are building with @jreback?), arch linux, ubuntu 12.04 and 12.10, fedora 17, centos and a couple of mac versions not sure which ones though. personally i've tested all the linux versions i just mentioend except centos and they're fine.

can u post the output of agged and of to_unstack (at the point right before it hangs)?

@michaelaye
Copy link
Contributor

10.8.5? Are you running a development version of OSX?

@rmschne
Copy link
Author

rmschne commented Jun 20, 2013

Re michaelaye's question. No. Macbook Pro OSX Ver 10.8.4.
Re cpcloud's requests. Will do shortly.

@rmschne
Copy link
Author

rmschne commented Jun 20, 2013

df.unstack(0) works as expected.

@rmschne
Copy link
Author

rmschne commented Jun 20, 2013

@michaelaye ... following are all the versions in place in the virtual env. While OSX is not development, is the comment from yolk -l "active development" for Python 2.7.2 relevant to your question? I never noticed word "development". I've not touched the built-in Python to my knowledge. New machine in Nov 2012.

Cython - 0.19.1 - active
Django - 1.5.1 - active
MySQL-python - 1.2.4b4 - active
Python - 2.7.2 - active development (/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
distribute - 0.6.28 - active
django-ical - 1.1 - active
django-mailchimp - 0.1.30 - active
icalendar - 3.1 - active
ipython - 0.13.2 - active
mailsnake - 1.6.1 - active
matplotlib - 1.2.1 - active
numpy - 1.7.1 - active
pandas - 0.11.0 - active
pip - 1.2.1 - active
python-dateutil - 2.1 - active
pytz - 2013b - active
requests - 0.14.2 - active
scipy - 0.11.0 - active
setuptools - 0.6c11 - active
simplejson - 2.6.2 - active
six - 1.3.0 - active
wsgiref - 0.1.2 - active development (/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
yolk - 0.4.3 - active

@rmschne
Copy link
Author

rmschne commented Jun 20, 2013

re "can u post the output of agged and of to_unstack (at the point right before it hangs)?" see below.

code used:
import pandas as pd
import numpy as np
dates = pd.date_range('20130101',periods=6)
df=pd.DataFrame(np.random.randn(6,4),index=dates,columns=list('ABCD'))
pd.pivot_table(df,values='D',rows=['A','B'], cols=['C'])

ipdb> s

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/tools/pivot.py(106)pivot_table()
105 for i in range(len(rows), len(keys))]
--> 106 table = agged.unstack(to_unstack)
107

ipdb> to_unstack
['C']
ipdb> agged.unstack
<bound method DataFrame.unstack of D
A B C
0.231070 0.845382 -1.799034 -0.710194
0.235399 -0.139735 -2.427783 0.383835
0.423190 -0.728801 2.365571 1.238740
0.442577 -0.579150 0.852391 -0.216884
0.446209 1.027718 -1.324967 1.826515
0.801922 -1.061610 -0.013138 0.245529>
ipdb> n

HANGS HERE NOW

@rmschne
Copy link
Author

rmschne commented Jun 20, 2013

Re "build the latest git master and see if the problem is alleviated" ... don't know how to do this. I rely on "pip install pandas". Can you send me a link to instructions, or give the command?

@jtratner
Copy link
Contributor

@buckeye1 download the source, go into the directory and run python setup.py install and it will handle the installation for you. [could take a while to build though]

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

Thanks. I know the "python setup.py install" step. As I can't find the tar file, can you please give me the URL to where I can find how to make a local git repository and then download it? I presume that the process. Or something simpler?

@michaelaye
Copy link
Contributor

when you go here: https://github.com/pydata/pandas you see in the lower right side the download link and an icon to copy the url into your clipboard. Now go to your terminal, change directory to where you want to have these kind of data stored and type : git clone paste (You have to have git installed for that to work.) Cloning like this will by default end up being in the master branch. Now enter the newly created folder 'pandas' and execute the standard 'python setup.py install' (possibly prefixed with a 'sudo' if your python environment folder is not writable by your standard user).
A nice side-feature of this is that you can get the pandas version of your preference like this:

  1. get advised which version number to use
  2. inside the pandas folder use 'git tag' to get a list of tags. The advised version number will be in there.
  3. Get the code for that version like so: 'git checkout version_tag'
  4. execute '[sudo] python setup.py install'
  5. enjoy a maybe less adventurous version of pandas. ;)

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

installed pandas-0.11.1.dev_36c1263. on Mac OSX (latest) in virtual env. first run failed as missing "nose". so used pip to install that.
re-ran my test script not in debug mode and it appeared to crash again. so, ...

import pandas as pd
import numpy as np
dates = pd.date_range('20130101',periods=3)
df=pd.DataFrame(np.random.randn(3,4),index=dates,columns=list('ABCD'))
pd.pivot_table(df,values='D',rows=['A','B'], cols=['C'])

(note: to save time on debugging pressing 'n' and 's' changed from 6 to 3 periods)

After 45 minutes of pressing 's', I conclude it's in a loop. That conclusion may be wrong, but after 45 minutes which is on a reduced set of periods (see above)

ipdb> s

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/reshape.py(467)get_compressed_ids()
466 while com._long_prod(sizes[:i]) >= 2 ** 63:
--> 467 i -= 1
468

ipdb> s

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/reshape.py(466)get_compressed_ids()
465 i = len(sizes)
--> 466 while com._long_prod(sizes[:i]) >= 2 ** 63:
467 i -= 1

ipdb> s
--Call--

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/common.py(1391)_long_prod()
1390
-> 1391 def _long_prod(vals):
1392 result = 1L

ipdb> s

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/common.py(1392)_long_prod()
1391 def _long_prod(vals):
-> 1392 result = 1L
1393 for x in vals:

ipdb> s

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/common.py(1393)_long_prod()
1392 result = 1L
-> 1393 for x in vals:
1394 result *= x

ipdb> s

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/common.py(1395)_long_prod()
1394 result *= x
-> 1395 return result
1396

ipdb> s
--Return--
1L

/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas-0.11.1.dev_36c1263-py2.7-macosx-10.5-intel.egg/pandas/core/common.py(1395)_long_prod()
1394 result *= x
-> 1395 return result
1396

@jreback
Copy link
Contributor

jreback commented Jun 21, 2013

I think this issue exists on #3902 on mac as well

something fishy in the int max....can you post these 2 values

In [1]: np.iinfo(np.int64).max
Out[1]: 9223372036854775807

In [2]: 2**63
Out[2]: 9223372036854775808L

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

ipdb> np.iinfo(np.int64).max
9223372036854775807
ipdb> 2**63
-9223372036854775808
ipdb>

interesting.

@jreback
Copy link
Contributor

jreback commented Jun 21, 2013

so this is the cause of the loop

it appears (only on mac) that the max int64 value is 263-1 (rather than 263)

but more insidious it appears to wrap around (which i think is really weird)

on amd64

In [1]: np.iinfo(np.int64).max
Out[1]: 9223372036854775807

In [2]: np.iinfo(np.int64).max+1
Out[2]: 9223372036854775808L

so this is a bug, but a very odd one....marking it as such

@jreback
Copy link
Contributor

jreback commented Jun 21, 2013

post details on your os? do you have an older (or newer) version? wondering if this is a function of all mac os

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

not sure i understand here's what i get

In [1]: sys.maxint
Out[1]: 9223372036854775807

In [2]: sys.maxint == 2 ** 63 - 1
Out[2]: True

In [3]: np.iinfo(np.int64).max
Out[3]: 9223372036854775807

In [4]: np.iinfo(np.int64).max + 1
Out[4]: 9223372036854775808L

In [5]: np.iinfo(np.int64).max == 2 ** 63 - 1
Out[5]: True

In [6]: !uname -a
Linux phillip-laptop 3.9.6-1-ARCH #1 SMP PREEMPT Fri Jun 14 08:12:55 CEST 2013 x86_64 GNU/Linux

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

oh i see the wrap around but the max value is the same..

@michaelaye
Copy link
Contributor

The wrap around does not happen on my Mac?

In [2]: iinfo(np.int64).max
Out[2]: 9223372036854775807

In [3]: iinfo(np.int64).max+1
Out[3]: 9223372036854775808L

In [4]: 2**63
Out[4]: 9223372036854775808L

In [5]: import sys;sys.maxint
Out[5]: 9223372036854775807

In [6]: !uname -a
Darwin blastoid.ess.ucla.edu 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

np 1.7.1 though? and Python 2.7.3

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

@michaelaye what is ur osx version?

@michaelaye
Copy link
Contributor

10.8.4 all patches.

@jreback
Copy link
Contributor

jreback commented Jun 21, 2013

@buckeye1 has 10.8.5, could that be the difference?

@michaelaye
Copy link
Contributor

no he confirmed after my question that he has 10.8.4 (as there is no 10.8.5 official yet)

@jreback
Copy link
Contributor

jreback commented Jun 21, 2013

ok....can you tell if his install is different that yours (prob not enough info)..?

are there different flavors (like in linux) on mac?

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

@michaelaye what is ur python version? @buckeye1 is using 2.7.2

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

i can sort of repro this, but it's to be expected because numpy doesn't do long conversion....

In [35]: int64(sys.maxint) # ok
Out[35]: 9223372036854775807

In [36]: int64(sys.maxint) + 1 # wrap around b/c of dtype not surprising
Out[36]: -9223372036854775808

but why are the python ints behaving this way?! they should cast to long....

@michaelaye
Copy link
Contributor

As I edited above cough I'm using 2.7.3. And this seems to become a Robert Kern question ... ;)

@michaelaye
Copy link
Contributor

@buckeye1 I noticed that your Python is stored in a Cellar, so you installed it with homebrew? That makes me wonder why it is such an old Python, as homebrew is usually up-to-date? I have no clue if it is maybe 'frozen' when using the Python from homebrew in your virtual env as I luckily still never saw the need for a virtualenv, but maybe it's worth to quickly install the free Enthought Python distribution (I am not affiliated but a long time user of it) and see if problems continue to exist there?

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

System details (and yes, I had a thick figure problem on my first reply on Mac OSX Version)

MacOSX 10.8.4, 2.7 ghz Intel Core i7 16 gb
Cython - 0.19.1 - active
Django - 1.5.1 - active
MySQL-python - 1.2.4b4 - active
Python - 2.7.2 - active development (/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
distribute - 0.6.28 - active
django-ical - 1.1 - active
django-mailchimp - 0.1.30 - active
icalendar - 3.1 - active
ipython - 0.13.2 - active
mailsnake - 1.6.1 - active
matplotlib - 1.2.1 - active
nose - 1.3.0 - active
numpy - 1.7.1 - active
pandas - 0.11.0 - non-active
pandas - 0.11.1.dev-36c1263 - active
pip - 1.2.1 - active
python-dateutil - 2.1 - active
pytz - 2013b - active
requests - 0.14.2 - active
scipy - 0.11.0 - active
setuptools - 0.6c11 - active
simplejson - 2.6.2 - active
six - 1.3.0 - active
wsgiref - 0.1.2 - active development (/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
yolk - 0.4.3 - active

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

there's the --enable-big-digits configure flag (defaults to 30 bits) if you happened to compile python from source. does homebrew do that? if it does maybe it changes that config value...but there are only 2 options 15 or 30...i'm going to recompile python and see if i can repor this

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

I don't recall installing python from source, and I don't remember how I setup the virtualenv, exactly. I know enough about the systems to be dangerous but my real interest is getting things done with python and django (and hopefully pandas). I want an virtual env so that I can install stuff outside of Apple's standard install. I got it going, it worked, and that was in Nov when the machine was new.

What version of python should I install into this virtual env?

@michaelaye
Copy link
Contributor

to check that, @buckeye1 should do the following:

In [8]: sys.long_info
Out[8]: sys.long_info(bits_per_digit=30, sizeof_digit=4)

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

nope that doesn't do anything

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

@michaelaye thanks that's much faster than recompilling

@michaelaye
Copy link
Contributor

@buckeye1 You do NOT need a virtual environment if your only goal is to leave Apple's Python alone! Just installing the latest 2.7.x release from python.org and activating it in your .bash_profile will do exactly that, I am doing that for years on my Macs. Or save yourself some installation time and go with the free EPD, then you already have the most important packages installed and still can install whatever you need on top, with pip as you did before. Your Python is located in the typical position for a homebrew installation, but as you don't recall, you never ever called brew update && brew upgrade I guess? Sounds like you are dangerous enough to create a borderline-hard-to-debug environment, true! ;)

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

Python 2.7.2 (default, Nov 3 2012, 16:25:27)
IPython 0.13.2 -- An enhanced Interactive Python.
In [1]: import sys
In [2]: sys.long_info
Out[2]: sys.long_info(bits_per_digit=30, sizeof_digit=4)

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

can u do 2 ** 63 in a vanilla interpreter?

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

@michaelaye. yes, I'm dangerous!!! ill-informed amateur.

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

2**63
-9223372036854775808

@michaelaye
Copy link
Contributor

launch your system python like so:
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python
and then try 2 ** 63

@rmschne
Copy link
Author

rmschne commented Jun 21, 2013

Now we are getting somewhere.

(rmspython)pluto:~ rmschne$ /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

2**63
9223372036854775808L

@michaelaye
Copy link
Contributor

Right, so you gotta replace your Python interpreter. I gave you some options above, which way you go, is up to you. But I would recommend to redo a clean setup and not force it on top of your current one where you don't remember how it was created.

@jreback
Copy link
Contributor

jreback commented Jun 21, 2013

@buckeye1 going to close this issue in favor of #3983; will see about working around this in 0.12

thanks for the report!

@jreback jreback closed this as completed Jun 21, 2013
@rmschne
Copy link
Author

rmschne commented Jun 22, 2013

I think all we established is that different flavours of Python computes 2**63 differently and that pandas doesn't accommodate that. Those two assertions are to be pondered. That being said. I still don't have pandas working. I'll work to find a version of Python that allows it to work, along with all the other stuff I must have to work, and use my test.py script as the acceptance criteria. Thanks to all who helped me with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants