Skip to content

ENH: bring back is_datetime_or_timedelta #55662

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

Closed
1 of 3 tasks
arden13 opened this issue Oct 24, 2023 · 2 comments
Closed
1 of 3 tasks

ENH: bring back is_datetime_or_timedelta #55662

arden13 opened this issue Oct 24, 2023 · 2 comments
Labels
Closing Candidate May be closeable, needs more eyeballs Enhancement

Comments

@arden13
Copy link

arden13 commented Oct 24, 2023

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

There was a feature present through pandas 2.0.x which allowed easy checking for datetime or timedelta. This was silently removed in 2.1.x breaking code we had currently working.

This is the previous function

Feature Description

See note above for function defined and ready to use

Alternative Solutions

At bare minimum please include this as an update to the documentation and provide a workaround. Silently breaking functionality for the purpose of speed enhancements is frustrating to troubleshoot.

Additional Context

No response

@arden13 arden13 added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 24, 2023
@mroeschke
Copy link
Member

Sorry for breakage but as noted in https://pandas.pydata.org/docs/reference/index.html, any functionality, unless noted, in pandas.core is not guaranteed to be stable.

You could probably compose this functionality with public type checking functions in https://pandas.pydata.org/docs/reference/arrays.html#utilities

@mroeschke mroeschke added Closing Candidate May be closeable, needs more eyeballs and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 24, 2023
@arden13
Copy link
Author

arden13 commented Oct 25, 2023

Well, thank you for the notification. I'll close the issue and find a workaround.

@arden13 arden13 closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closing Candidate May be closeable, needs more eyeballs Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants