Skip to content

segfault on set_index #3308

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
TomAugspurger opened this issue Apr 10, 2013 · 0 comments
Closed

segfault on set_index #3308

TomAugspurger opened this issue Apr 10, 2013 · 0 comments
Assignees
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@TomAugspurger
Copy link
Contributor

I probably shouldn't have been doing this in the first place, but I'm able to consistently generate a segfault with:

import pandas as pd
pd.__version__ # '0.11.0.dev-809b238'

d = {'t1': [2, 2.5, 3], 't2': [4, 5, 6]}
df = pd.DataFrame(d)
tuples = [(0, 1), (0, 2), (1, 2)]
df['tuples'] = tuples

df.set_index(pd.MultiIndex.from_tuples(df['tuples']))

#3028 is probably relevant. I have epsilon experience with Cython so I won't really be able to help out with this one. Happy to do more debugging if you need any though.

@ghost ghost assigned wesm Apr 12, 2013
@wesm wesm closed this as completed in 859d260 Apr 12, 2013
yarikoptic added a commit to neurodebian/pandas that referenced this issue Jun 3, 2013
Version 0.11 RC 1

* tag 'v0.11.0rc1': (647 commits)
  RLS: version 0.11 release candidate 1
  TST: py3 compat on test_pickle.py
  TST: properly raise the quoted exception when trying to unpickle on py2
  BUG: fix raw path to github raw data file
  DOC add missing arguments to to_datetime docstring
  PERF: series construction perf enhancements, use a fast path based on dtype
  PERF/CLN: infer Period in infer_dtype, later index inference is faster
  TST: run benchmark for repr wide frame with/without interactive mode
  PERF: fixed int64 indexing perf issue when conversion to int64
  DOC: fix typo
  WIP: finish on pandas-dev#2856
  DOC: add docstring
  BLD: travis make nose test selection clear via env_var
  BUG: segfault when set_index with MultiIndex. close pandas-dev#3308
  BUG: ensure index casting works even in Int64Index
  ENH: added py3 pickles, revsied to include SparseSeries/SparseDataFrame/Index/MultiIndex
  BUG: reading py2 pickles in py3 ok now
  BLD: fix setup.py to load correctly data files
  ENH: added legacy pickel generation/testing suppport
  CLN: moved all data for tests to /data sub-dir of the tests
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

2 participants