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

Revert changes to comparison between Series[datetime64ns] and datetime.date #21359

Closed
TomAugspurger opened this issue Jun 7, 2018 · 7 comments · Fixed by #27109
Closed

Revert changes to comparison between Series[datetime64ns] and datetime.date #21359

TomAugspurger opened this issue Jun 7, 2018 · 7 comments · Fixed by #27109
Labels
Datetime Datetime data dtype Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Jun 7, 2018

Revert the changes in #21361

  • [ ]: Remove check in core/ops.py
  • [ ]: Remove test pandas/tests/tseries/test_arithmetic.py::TestTimestampSeriesComparison.test_dt64_ser_cmp_date_warning
  • [ ]: Reenable test pandas/tests/tseries/test_arithmetic.py::TestTimestampSeriesComparison.test_dt64ser_cmp_date_invalid

Target this for 0.24?

xref #21152

@gfyoung gfyoung added Datetime Datetime data dtype Regression Functionality that used to work in a prior pandas version Numeric Operations Arithmetic, Comparison, and Logical operations and removed Regression Functionality that used to work in a prior pandas version labels Jun 8, 2018
@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Jun 8, 2018

@jreback @jorisvandenbossche can we do this for 0.24.0? That would mean

  • <0.22 : compare equal
  • 0.23.0 : compare unequal
  • >=0.23.1,<0.24.0 : compare equal & warn
  • 0.24.0 : compare unequal

@jreback
Copy link
Contributor

jreback commented Jun 8, 2018

that looks good to me

@jorisvandenbossche
Copy link
Member

We typically have deprecations for longer than a single release. Is there a good reason to not do that here?
(it's not that the current situation is actively harmful or so)

@TomAugspurger
Copy link
Contributor Author

If this were the behavior in 0.23.0, I would agree with a longer deprecation cycle. Should the fact that 0.23.0 and 0.23.1 behave differently change our thoughts at all? (I'm not sure really)

@jorisvandenbossche
Copy link
Member

I don't think that that is a reason to have a shorter deprecation cycle (at least it does not give any problems with the different behaviour, as if you already changed your code to the correct way when using 0.23.0, this will also work for the later versions with the reverted comparison op)

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Jun 8, 2018 via email

@TomAugspurger TomAugspurger added this to the Next Major Release milestone Jun 12, 2018
@jbrockmendel
Copy link
Member

#21359 (comment) looks like the plan was to implement the new behavior in 0.24.0. Any objection to doing it now?

jbrockmendel added a commit to jbrockmendel/pandas that referenced this issue Jun 28, 2019
@jreback jreback modified the milestones: Contributions Welcome, 0.25.0 Jun 28, 2019
@jorisvandenbossche jorisvandenbossche modified the milestones: 0.25.0, 1.0 Jun 30, 2019
quintusdias pushed a commit to quintusdias/pandas_dev that referenced this issue Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants