Skip to content

API: implement Period(|Dtype|Array|Index).unit, remove ._freqstr#64155

Open
jbrockmendel wants to merge 12 commits into
pandas-dev:mainfrom
jbrockmendel:api-unit
Open

API: implement Period(|Dtype|Array|Index).unit, remove ._freqstr#64155
jbrockmendel wants to merge 12 commits into
pandas-dev:mainfrom
jbrockmendel:api-unit

Conversation

@jbrockmendel
Copy link
Copy Markdown
Member

Discussed on last week's dev call. This PR adds the attribute everywhere it will be needed. Then we'll start deprecating freq and freqstr (including rebasing/fixing #61897)

This will have merge conflict with #64137 and #64136. Slight preference for merging those first so I only have to rebase one thing instead of 2.

Copy link
Copy Markdown
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

Looks pretty good. Would need a whatsnew note for v3.1.0.rst

@mroeschke mroeschke added this to the 3.1 milestone Feb 16, 2026
@mroeschke mroeschke added the Period Period data type label Feb 16, 2026
@jbrockmendel
Copy link
Copy Markdown
Member Author

Turning this into a draft so I can post an issue discussing API options. I still think this is the right way to go, but there are reasonable alternatives.

@jbrockmendel jbrockmendel marked this pull request as draft February 16, 2026 20:49
@jbrockmendel
Copy link
Copy Markdown
Member Author

xref #64174 to warm my cold feet.

@jbrockmendel jbrockmendel force-pushed the api-unit branch 2 times, most recently from 34b6472 to 4073ba9 Compare March 15, 2026 17:53
@jbrockmendel jbrockmendel marked this pull request as ready for review March 18, 2026 16:10
@jbrockmendel jbrockmendel force-pushed the api-unit branch 3 times, most recently from cb998e1 to 12a7e8b Compare March 23, 2026 17:20
@jbrockmendel jbrockmendel force-pushed the api-unit branch 2 times, most recently from 75f6184 to 66a898b Compare April 1, 2026 19:58
@jbrockmendel jbrockmendel force-pushed the api-unit branch 3 times, most recently from 9179855 to 75156d1 Compare April 16, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Period Period data type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants