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

BUG: GH24011 - Rich comparisons of Timestamps now return NotImplemented #24021

Merged
merged 16 commits into from
Apr 5, 2019
Merged

BUG: GH24011 - Rich comparisons of Timestamps now return NotImplemented #24021

merged 16 commits into from
Apr 5, 2019

Conversation

AlexandreDecan
Copy link
Contributor

@AlexandreDecan AlexandreDecan commented Nov 30, 2018

@pep8speaks
Copy link

pep8speaks commented Nov 30, 2018

Hello @AlexandreDecan! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-04-01 12:13:42 UTC

@AlexandreDecan
Copy link
Contributor Author

Tests did not fail locally. I will have a closer look to see why.

@gfyoung gfyoung added Datetime Datetime data dtype API Design labels Dec 2, 2018
@jbrockmendel
Copy link
Member

@AlexandreDecan did this become more time-sensitive, or can it still wait until January?

@AlexandreDecan
Copy link
Contributor Author

@AlexandreDecan did this become more time-sensitive, or can it still wait until January?

It can wait until January, I have temporary workarounds. For simplicity, should I close this PR until January?

@jbrockmendel
Copy link
Member

For simplicity, should I close this PR until January?

No, it just means I won't feel bad about taking my time to form an opinion.

@AlexandreDecan
Copy link
Contributor Author

You should never feel bad about taking time to form an opinion 😉

@codecov
Copy link

codecov bot commented Dec 2, 2018

Codecov Report

Merging #24021 into master will decrease coverage by 49.86%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #24021       +/-   ##
===========================================
- Coverage   92.31%   42.45%   -49.87%     
===========================================
  Files         161      161               
  Lines       51549    51561       +12     
===========================================
- Hits        47586    21888    -25698     
- Misses       3963    29673    +25710
Flag Coverage Δ
#multiple ?
#single 42.45% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/core/categorical.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-97.64%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-95.46%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.17%) ⬇️
pandas/io/sas/sas_xport.py 0% <0%> (-90.15%) ⬇️
pandas/core/tools/numeric.py 10.44% <0%> (-89.56%) ⬇️
... and 119 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc8d35a...1be836d. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 2, 2018

Codecov Report

Merging #24021 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24021      +/-   ##
==========================================
- Coverage   91.82%   91.81%   -0.01%     
==========================================
  Files         175      175              
  Lines       52580    52581       +1     
==========================================
- Hits        48279    48276       -3     
- Misses       4301     4305       +4
Flag Coverage Δ
#multiple 90.36% <ø> (ø) ⬆️
#single 41.89% <ø> (-0.08%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 75% <0%> (-12.5%) ⬇️
pandas/core/frame.py 96.79% <0%> (-0.12%) ⬇️
pandas/_config/config.py 86.86% <0%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3989e47...bfda6c3. Read the comment docs.

@jbrockmendel jbrockmendel mentioned this pull request Dec 4, 2018
@jreback
Copy link
Contributor

jreback commented Dec 14, 2018

@jbrockmendel so deferring this to 0.25, can you PR for reverting the Timedelta change.

@jreback jreback added this to the 0.25.0 milestone Dec 14, 2018
@WillAyd
Copy link
Member

WillAyd commented Feb 27, 2019

Closing as stale. Ping if you'd like to continue

@WillAyd WillAyd closed this Feb 27, 2019
@AlexandreDecan
Copy link
Contributor Author

Ping!? Waiting for info in #24011

@WillAyd WillAyd reopened this Feb 28, 2019
@WillAyd
Copy link
Member

WillAyd commented Feb 28, 2019

@AlexandreDecan sounds good I've reopened. FWIW this would go in on 0.25 at the earliest at which point we drop Python2 support, so any compat issues there are not really a concern. Briefly read through the rest of the issue and wasn't clear what info you might be waiting for so let me know if I overlooked.

Otherwise feel free to merge master

@AlexandreDecan
Copy link
Contributor Author

It wasn't clear to me what is the plan for this issue/PR. I'll add some tests to this PR asap (probably not before tomorrow).

@AlexandreDecan
Copy link
Contributor Author

I forgot that there are already some tests. I'll merge master, and update the what's new entry according to the guidelines (need to find them first ;-)

@AlexandreDecan
Copy link
Contributor Author

What about the existing tests that are explicitly failing because of this change? Could I remove/adapt them, or should this be part of another PR?

doc/source/whatsnew/v0.25.0.rst Outdated Show resolved Hide resolved
pandas/tests/scalar/timestamp/test_comparisons.py Outdated Show resolved Hide resolved
pandas/tests/scalar/timestamp/test_comparisons.py Outdated Show resolved Hide resolved
Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like your test is failing on CI.

doc/source/whatsnew/v0.25.0.rst Outdated Show resolved Hide resolved
@AlexandreDecan
Copy link
Contributor Author

I've just fixed the test. Sorry for that, I should have checked before pushing the commits ;-)

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Mar 5, 2019 via email

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Mar 5, 2019 via email

@AlexandreDecan
Copy link
Contributor Author

I tested and it works. Thanks!

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small change. I think we can merge this as soon a PY2 ci (#24942) & numpy 1.13 bump (#25554) happens, soon.

doc/source/whatsnew/v0.25.0.rst Outdated Show resolved Hide resolved
@jreback
Copy link
Contributor

jreback commented Mar 20, 2019

can you merge master

@AlexandreDecan
Copy link
Contributor Author

Both PY2 ci (#24942) & numpy 1.13 bump (#25554) have been merged.
Any update for this PR?

@jreback
Copy link
Contributor

jreback commented Apr 1, 2019

pls merge master

@AlexandreDecan
Copy link
Contributor Author

AlexandreDecan commented Apr 1, 2019

Done.

How many times will I have to merge master? I already did it 12 days ago, when you asked... :)

@jreback
Copy link
Contributor

jreback commented Apr 1, 2019

pr was failing the CI

How many times will I have to merge master? I already did it 12 days ago, when you asked... :)

we have quite a number of PRs and they are need updating especially when thing change. 12 days is a long time.

doc/source/whatsnew/v0.25.0.rst Show resolved Hide resolved
pandas/tests/scalar/timestamp/test_comparisons.py Outdated Show resolved Hide resolved
@jreback
Copy link
Contributor

jreback commented Apr 1, 2019

@jbrockmendel if you have comments

@jreback jreback merged commit a193df1 into pandas-dev:master Apr 5, 2019
@jreback
Copy link
Contributor

jreback commented Apr 5, 2019

thanks @AlexandreDecan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rich comparisons of Timestamps raise TypeError instead of returning NotImplemented
8 participants