-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Make DateOffset.kwds a property #19403
Changes from 2 commits
fe7a718
533cb19
bfae96d
53c251f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,7 +218,7 @@ def test_offset_freqstr(self, offset_types): | |
|
||
freqstr = offset.freqstr | ||
if freqstr not in ('<Easter>', | ||
"<DateOffset: kwds={'days': 1}>", | ||
"<DateOffset: days=1>", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need a whatsnew note, explainig that the repr changed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did the repr change break anything? can you add some tests for this (doesn't have to be comprehensive, but some basic ones is ok) |
||
'LWOM-SAT', ): | ||
code = get_offset(freqstr) | ||
assert offset.rule_code == code | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In particular DateOffset has a lot of _attributes that may not get set unless specifically passed.