Skip to content

Creating a DataFrame from Series with unsorted indeces gives completely bad data #1745

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
beaumartinez opened this issue Aug 8, 2012 · 5 comments
Labels

Comments

@beaumartinez
Copy link

Creating a DataFrame from Series with unsorted indeces gives completely bad data.

I've written a module that reproduces the bug—unless this is by design. Give it a try.

(I'm running pandas==0.8.1, Python 2.7.2, and OS X Mountain Lion.)

@beaumartinez
Copy link
Author

It turns out it's by design

While pandas does not force you to have a sorted date index, some of these methods may have unexpected or incorrect behavior if the dates are unsorted. So please be careful

@wesm wesm reopened this Aug 10, 2012
@wesm
Copy link
Member

wesm commented Aug 10, 2012

No, what you show in the script looks like a bug, let me have a look.

@wesm
Copy link
Member

wesm commented Aug 10, 2012

Definitely a bug. I'll sort out a fix right now once I figure out what's happening

@wesm wesm closed this as completed in aea7c45 Aug 10, 2012
@wesm
Copy link
Member

wesm commented Aug 10, 2012

Fixed the underlying issue

@beaumartinez
Copy link
Author

👍

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

2 participants