Skip to content
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

"greater than" comparison method of doesn't perform as expected on Micro objects #2078

Closed
cpcloud opened this issue Oct 16, 2012 · 0 comments
Labels
Milestone

Comments

@cpcloud
Copy link
Member

cpcloud commented Oct 16, 2012

Using IPython:

In [1]: import pandas

In [2]: Micro = pandas.datetools.Micro

In [3]: 3 * Micro() > 2 * Micro()
Out[3]: False

In [4]: 2 * Micro() > 3 * Micro()
Out[4]: False

They can't both be False. Giving the arguments to > to cmp works as expected. Not sure where the issue lies since neither Micro nor any of its superclasses implements any of the comparison methods except __eq__ and __ne__.

@wesm wesm closed this as completed in b568c74 Nov 2, 2012
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