Skip to content

DEPR: enforce deprecation on floats with unit=M or Y #48671

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

Merged
merged 7 commits into from
Oct 19, 2022

Conversation

jbrockmendel
Copy link
Member

Unfortunately just found that we missed the analogous behavior in to_datetime with non-scalars. That'll go in the just-do-in-2.0 pile.

Whatsnew is in 1.6 on the assumption it will be changed to 2.0.

@mroeschke mroeschke added this to the 2.0 milestone Sep 21, 2022
@mroeschke mroeschke added Frequency DateOffsets Deprecate Functionality to remove in pandas labels Sep 21, 2022
@@ -116,6 +116,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor

Other API changes
^^^^^^^^^^^^^^^^^
- Disallow passing non-round floats to :class:`Timestamp` with ``unit="M"`` or ``unit="Y"`` (:issue:`47266`)
Copy link
Member

Choose a reason for hiding this comment

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

Could you start a new section in the whatsnew for these like we did in 1.0? https://pandas.pydata.org/docs/whatsnew/v1.0.0.html#removal-of-prior-version-deprecations-changes

Copy link
Member Author

Choose a reason for hiding this comment

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

updated + green

Copy link
Member Author

Choose a reason for hiding this comment

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

after this is merged ill update the other deprecation-enforcing PRs to move the notes to the appropriate section

@jbrockmendel
Copy link
Member Author

@phofl gentle ping, getting this in will allow us to move the whatsnew notes over to the new section and start getting those in

@phofl phofl merged commit 75429df into pandas-dev:main Oct 19, 2022
@phofl
Copy link
Member

phofl commented Oct 19, 2022

thx @jbrockmendel

@jbrockmendel jbrockmendel deleted the deprs branch October 19, 2022 14:38
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants