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

BUG: to_timedelta with ArrowDtype(pa.duration) #54298

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Jul 28, 2023

@mroeschke mroeschke added Timedelta Timedelta data type Arrow pyarrow functionality labels Jul 28, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jul 28, 2023
arg,
unit: UnitChoices | None = None,
errors: DateTimeErrorChoices = "raise",
name: Hashable | None = None,
Copy link
Member

Choose a reason for hiding this comment

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

i think Hashable includes None?

Copy link
Member Author

Choose a reason for hiding this comment

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

mypy doesn't complain when removing None, but looks like there's a ruff check that auto-annotates None here

@mroeschke
Copy link
Member Author

Looks like tests are passing here so merging. Happy to follow up if needed

@mroeschke mroeschke merged commit eaddc1d into pandas-dev:main Aug 3, 2023
32 checks passed
@mroeschke mroeschke deleted the bug/to_timedelta/arrow branch August 3, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants