Skip to content

DEPR: freq ''2BQ-SEP" for to_period should raise an error #56906

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

Conversation

natmokval
Copy link
Contributor

corrected the definition to_period to raise an errror for freq = '2BQ-SEP' and add tests

No whatsnew note as this is only on main yet.

@natmokval natmokval marked this pull request as ready for review January 16, 2024 10:29
@natmokval
Copy link
Contributor Author

@MarcoGorelli, could you please take a look at this PR?

@mroeschke mroeschke added Frequency DateOffsets Period Period data type labels Jan 16, 2024
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Awesome, well done spotting and fixing!

Doesn't need a whatsnew note as this hasn't hit users yet

I think the test location was good to begin with (test_to_period) as you're testing the to_period function here, not the Period constructor

but ok for a follow-up, good to get this in for 2.2!

@MarcoGorelli MarcoGorelli added this to the 2.2 milestone Jan 16, 2024
@MarcoGorelli MarcoGorelli merged commit 329b553 into pandas-dev:main Jan 16, 2024
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jan 16, 2024
mroeschke pushed a commit that referenced this pull request Jan 16, 2024
…od should raise an error) (#56916)

Backport PR #56906: DEPR: freq ''2BQ-SEP" for to_period should raise an error

Co-authored-by: Natalia Mokeeva <[email protected]>
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: freq ''2BQ-SEP" for to_period should raise an error
3 participants