Skip to content

BUG: chokes on pd.DatetimeTZDtype if there are no rows. #59123

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 1 commit into from
Jun 29, 2024

Conversation

pcorpet
Copy link
Contributor

@pcorpet pcorpet commented Jun 27, 2024

This is a follow up to #41875

@mroeschke
Copy link
Member

Is there an issue open for this?

@pcorpet
Copy link
Contributor Author

pcorpet commented Jun 27, 2024

I'd welcome some help to understand where/how to add a proper test. I have added a simple repro (3 lines) in the bug

@mroeschke
Copy link
Member

If you could add a unit test in pandas/tests/reshape/test_pivot.py that mimics your reproducer that would be great

@pcorpet pcorpet force-pushed the main branch 5 times, most recently from c00493c to 8fab5f0 Compare June 28, 2024 14:28
@mroeschke mroeschke added Reshaping Concat, Merge/Join, Stack/Unstack, Explode ExtensionArray Extending pandas with custom dtypes or arrays. labels Jun 28, 2024
@mroeschke mroeschke added this to the 3.0 milestone Jun 29, 2024
@mroeschke mroeschke merged commit 23e592f into pandas-dev:main Jun 29, 2024
45 checks passed
@mroeschke
Copy link
Member

Thanks @pcorpet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pivot_table chokes on pd.DatetimeTZDtype if there are no rows.
2 participants