-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix Series(List[Interval]) to infer interval dtype #28399
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
@@ -970,16 +970,34 @@ def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg): | |||
expected = Series(pd.Timestamp(arg)).dt.tz_localize("CET") | |||
assert_series_equal(result, expected) | |||
|
|||
def test_construction_interval(self): | |||
@pytest.mark.parametrize("interval_constructor", [IntervalIndex, IntervalArray]) | |||
def test_construction_interval(self, interval_constructor): |
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.
no material change here, just cleaning up by using parametrize
and removing some unnecessary lines (unassigned repr
/str
calls)
@pytest.mark.parametrize( | ||
"data_constructor", [list, np.array], ids=["list", "ndarray[object]"] | ||
) | ||
def test_constructor_infer_period(self, data_constructor): |
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.
no material change here, just cleaning up by using parametrize
@jschendel can you rebase |
@jschendel still active? |
Merged master. This looks good. |
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.
pls merge master as well
can you merge master;ping when green. |
#30640 needs to get merged before this will be good to go per #23563 (comment) |
This is green now. Anything left that I should address? |
lgtm. thanks @jschendel |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff