Skip to content

Conversation

@jbrockmendel
Copy link
Member

Removing this unused case turns out to be a blocker to making get_day_of_month nogil, which in turn will allow a bunch of de-duplication in this file.

@jreback jreback added this to the 1.1 milestone Jun 14, 2020
@jreback jreback added the Frequency DateOffsets label Jun 14, 2020
return min(day_opt, days_in_month)
elif day_opt is None:
# Note: unlike `shift_month`, get_day_of_month does not
# allow day_opt = None
Copy link
Contributor

Choose a reason for hiding this comment

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

I would check if we have tests for this raise case (also doesn't need to be an else anymore as everything returns. followon on).

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, we have tests for both the ValueError and NotImplementedError cases here

Copy link
Member Author

Choose a reason for hiding this comment

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

as for "else", I get compile-time failures about unreached code

@jreback jreback merged commit 04d4075 into pandas-dev:master Jun 14, 2020
@jreback
Copy link
Contributor

jreback commented Jun 14, 2020

thanka followo suggestion

@jbrockmendel jbrockmendel deleted the ref-liboffsets-day_opt branch June 14, 2020 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frequency DateOffsets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants