Skip to content

POC/DEPR: infer time objects to ArrowDtype[time] #53025

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
wants to merge 14 commits into from

Conversation

jbrockmendel
Copy link
Member

xref #52711 this is what I have in mind for how we would deprecate the current inference behavior with a sequence of datetime.time objects. We would allow opting-in to the future behavior with pd.set_option("future.infer_time", True).

I plan to update this PR to also deprecate returning object dtype from the time and timetz properties in the .dt accessor. Also any relevant cases in the sql code.

If we go down this route, I would follow this with analogous PRs for datetime.date, Decimal, ...

@jbrockmendel
Copy link
Member Author

Since the string version of this is in, this POC is no longer needed. Closing.

@jbrockmendel jbrockmendel deleted the poc-future branch August 23, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants