Skip to content

REF: expose pandas_timedelta_to_timedeltastruct #46578

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 2 commits into from
Mar 31, 2022

Conversation

jbrockmendel
Copy link
Member

Broken off from a branch implementing non-nano Timedelta scalar.

cmp_dtstructs will end up being used by both Timedelta.__richcmp__ and Timestamp.__richcmo__

@@ -100,6 +95,28 @@ def py_get_unit_from_dtype(dtype):
# Comparison


cdef bint cmp_dtstructs(
Copy link
Member

Choose a reason for hiding this comment

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

So this will be tested in a follow up PR when integrated into Timestamp & Timedelta?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

@mroeschke mroeschke added Refactor Internal refactoring of code Non-Nano datetime64/timedelta64 with non-nanosecond resolution labels Mar 31, 2022
@mroeschke mroeschke added this to the 1.5 milestone Mar 31, 2022
@mroeschke mroeschke merged commit 2555468 into pandas-dev:main Mar 31, 2022
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the nano-common branch March 31, 2022 18:36
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* REF: expose pandas_timedelta_to_timedeltastruct

* mypy fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Non-Nano datetime64/timedelta64 with non-nanosecond resolution Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants