Skip to content

df.set_index() broken #5605

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
michaelaye opened this issue Nov 28, 2013 · 7 comments · Fixed by #5606
Closed

df.set_index() broken #5605

michaelaye opened this issue Nov 28, 2013 · 7 comments · Fixed by #5606
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@michaelaye
Copy link
Contributor

http://nbviewer.ipython.org/gist/michaelaye/7685834

Version: d057fc9 ('0.12.0-1178-gd057fc9')

I tried a sequence of "python setup.py clean && python setup.py install" without success.

@jreback
Copy link
Contributor

jreback commented Nov 28, 2013

are u trying to set a as a float index ?

@cancan101
Copy link
Contributor

set_index is not failing but rather the rendering of the returned Dataframe

@jreback
Copy link
Contributor

jreback commented Nov 28, 2013

the problem is the repr is not using iloc to select rows and is using getitem
I'll fix in a bit

@michaelaye
Copy link
Contributor Author

that was only for the example. In my case I have a TimeSeries I want to make an index and I get that error. Ok, sorry for jumping the gun to set_index, I was wondering how that could have been missed by the tests.

@michaelaye
Copy link
Contributor Author

Display code, all you guys' favorite stuff it seems. ;)

@jreback
Copy link
Contributor

jreback commented Nov 28, 2013

@michaelaye give a try on latest master...you should be good to go

@michaelaye
Copy link
Contributor Author

yep, fine now. Thanks for the fast fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants