-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF/TST: misplaced tests in tests.indexes.period #31758
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
Conversation
|
||
exp = DatetimeIndex(["2011-01-01", "2011-02-01", "2011-03-01"], tz="US/Eastern") | ||
res = pi.astype("datetime64[ns, US/Eastern]") | ||
tm.assert_index_equal(pi.astype("datetime64[ns, US/Eastern]"), exp) |
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.
the res here is duplicated
also can you have the others use res= rather than doing it in the comparator
tm.assert_index_equal(pd.Index(arr), pd.PeriodIndex(arr)) | ||
tm.assert_index_equal(pd.Index(np.array(arr)), pd.PeriodIndex(np.array(arr))) | ||
arr = [Period("2011-01", freq="M"), NaT, Period("2011-03", freq="M")] | ||
tm.assert_index_equal(Index(arr), PeriodIndex(arr)) |
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.
ideally make these
res =
exp =
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.
agreed. per request from @WillAyd, trying to keep pure-moves separate from other cleanups. dont worry, there's plenty more index test organization on its way
No description provided.