-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Added test for #5091 (Missing Periods for some DateOffsets) #33195
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
Changes from 1 commit
d656564
044968a
87a58a1
089ed84
8972746
57c6283
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 |
---|---|---|
|
@@ -106,6 +106,13 @@ def test_asfreq_resample_set_correct_freq(self): | |
# does .resample() set .freq correctly? | ||
assert df.resample("D").asfreq().index.freq == "D" | ||
|
||
def test_period_dateoffset_conversion(self): | ||
ts = pd.date_range('1/1/2012', periods=4, freq=pd.offsets.BQuarterEnd()) | ||
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. Can you add the issue number to this test? |
||
per = ts.to_period() | ||
ts_per = per.to_timestamp() | ||
|
||
tm.assert_datetime_array_equal(ts, ts_per) | ||
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. Could use use |
||
|
||
def test_view_tz(self): | ||
# GH#24024 | ||
ser = pd.Series(pd.date_range("2000", periods=4, tz="US/Central")) | ||
|
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.
Could you put this test in
pandas/tests/indexes/period/test_to_timestamp.py