Skip to content

Related to Issue 3922: Panda still crashes with pivot() Function #5793

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 Dec 30, 2013 · 5 comments
Closed

Related to Issue 3922: Panda still crashes with pivot() Function #5793

rmschne opened this issue Dec 30, 2013 · 5 comments

Comments

@rmschne
Copy link

rmschne commented Dec 30, 2013

Followup to 3922 where it was recognised a bug maybe to be fixed in Ver 12, I left it a few months and waiting for version 0.12.0 which is now installed on Mac with fully patched mavericks.

Old issue: #3922

Doing the example on http://pandas.pydata.org/pandas-docs/stable/reshaping.html, all works down to In [3] where I issue the command:

df.pivot(index='date', columns='variable', values='value')

Nothing happens. Press ctrl-d:

File "<stdin>", line 1, in <module>
  File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/frame.py", line 4182, in pivot
    return pivot(self, index=index, columns=columns, values=values)
  File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 345, in pivot
    return indexed.unstack(columns)
  File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/series.py", line 2439, in unstack
    return unstack(self, level)
  File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 419, in unstack
    unstacker = _Unstacker(obj.values, obj.index, level=level)
  File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 87, in __init__
    self._make_sorted_values_labels()
  File "/Users/rmschne/.virtualenv/rmspython/lib/python2.7/site-packages/pandas/core/reshape.py", line 98, 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 470, in get_compressed_ids
    while com._long_prod(sizes[:i]) >= 2 ** 63:

System requirements (from 'pip') are:
Cython==0.19.1
Django==1.5.1
MySQL-python==1.2.4b4
distribute==0.6.28
django-ical==1.1
django-mailchimp==0.1.30
icalendar==3.1
ipython==0.13.2
mailsnake==1.6.1
matplotlib==1.2.1
nose==1.3.0
numpy==1.7.1
pandas==0.12.0
python-dateutil==2.1
pytz==2013.8
requests==0.14.2
scipy==0.11.0
simplejson==2.6.2
six==1.3.0
twitter==1.10.2
wsgiref==0.1.2
yolk==0.4.3

@rmschne
Copy link
Author

rmschne commented Dec 31, 2013

On the same Mac, using Parallels to run Ubuntu ... installed pandas and all dependancies ... the above pivot at step [3] worked just fine.

Thus I'm guessing something with with Apple's Python 2.7 or something.

@ghost
Copy link

ghost commented Jan 27, 2014

Can you provide a gdb stack trace? if the segfault occurs in pandas code we'll look into it.

@rmschne
Copy link
Author

rmschne commented Jan 27, 2014

Could you please advise how to do a gdb stack trace. Thanks.

On 27 Jan 2014, at 05:12, y-p [email protected] wrote:

Can you provide a gdb stack trace? if the segfault occurs in pandas code we'll look into it.


Reply to this email directly or view it on GitHub.

--rms

Rob Schneider
[email protected]

@ghost
Copy link

ghost commented Jan 27, 2014

@ghost
Copy link

ghost commented Jan 31, 2014

Closing, we'll reoepn if new info is available.

@ghost ghost closed this as completed Jan 31, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant