Skip to content

Conversation

@Aniketsy
Copy link
Contributor

@Aniketsy Aniketsy commented Oct 18, 2025

This PR updates PeriodArray.to_timestamp and PeriodIndex.to_timestamp to return a DatetimeArray with the lowest possible datetime64 resolution based on the period frequency (e.g., yearly periods use datetime64[Y], monthly use datetime64[M], etc.)

Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thankyou !

@Aniketsy Aniketsy marked this pull request as draft October 18, 2025 07:18
@Aniketsy Aniketsy marked this pull request as ready for review October 18, 2025 08:51
@jbrockmendel
Copy link
Member

I don’t think there has been any discussion/consensus on the issue? Same for your other PR this morning.

@Aniketsy
Copy link
Contributor Author

ah i see, i'll make sure to confirm with the members or wait for consensus before working on similar issues next time. Thanks for pointing that out!

@mroeschke
Copy link
Member

Thanks for the PR, but going to close this PR awaiting more discussion in the issue

@mroeschke mroeschke closed this Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API: dt64 resolution for PeriodIndex.to_timestamp

3 participants