Skip to content

BUG: Holiday(..) with both offset and observance raises #10226

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

Closed
wants to merge 1 commit into from

Conversation

bwillers
Copy link
Contributor

Resolves #10217

Doesn't fix the underlying issue yet, but at least raises on the unsupported behavior.

@jreback jreback added the Error Reporting Incorrect or improved errors from pandas label May 29, 2015
@jreback jreback added this to the 0.17.0 milestone May 29, 2015
@@ -737,6 +737,17 @@ def test_get_period_field_raises_on_out_of_range(self):
def test_get_period_field_array_raises_on_out_of_range(self):
self.assertRaises(ValueError, period.get_period_field_arr, -1, np.empty(1), 0)


class TestHolidayConflictingArguments(tm.TestCase):

Copy link
Contributor

Choose a reason for hiding this comment

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

can you add the issue number as a comment here

@jreback
Copy link
Contributor

jreback commented May 29, 2015

pls add a release note (put it in the API section for 0.17.0). minor changes otherwise. pls ping when green on travis.

@bwillers bwillers force-pushed the holiday_error_msg branch from 3880fe2 to 85628a2 Compare May 30, 2015 00:32
@bwillers
Copy link
Contributor Author

As requested. By the way, five points to whoever wrote the 'contributing to pandas' doc section.

@jreback
Copy link
Contributor

jreback commented May 30, 2015

thanks to

cc @rockg who put most of that together!

@jreback
Copy link
Contributor

jreback commented May 30, 2015

cc @rockg

look good to you?

@rockg
Copy link
Contributor

rockg commented May 31, 2015

Looks good to me. Let's keep the original issue open until that requested behavior is supported.

@bwillers Glad it was useful...hopefully removes the major hurdles to helping out.

@jreback
Copy link
Contributor

jreback commented Jun 1, 2015

merged via d513986

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Holidays Offset not Returning Correct Date
4 participants