We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed8820 commit 6515aa6Copy full SHA for 6515aa6
pandas/tests/series/indexing/test_setitem.py
@@ -1179,8 +1179,7 @@ def test_setitem_example(self):
1179
@pytest.fixture
1180
def obj(self):
1181
"""
1182
- Fixture to create a Series instance using IntervalIndex
1183
- [(0, 1], (1, 2], (2, 3]]
+ Fixture to create a Series [(0, 1], (1, 2], (2, 3]]
1184
1185
idx = IntervalIndex.from_breaks(range(4))
1186
return Series(idx)
@@ -1202,14 +1201,7 @@ def key(self):
1202
1201
1203
def expected(self, obj, val):
1204
1205
- Fixture to get a Series instance with dtype:float64 using the given
1206
- input fixture obj and fixture val.
1207
- Parameters:
1208
- obj(Series): [(0, 1], (1, 2], (2, 3]]
1209
- val(Interval): (0.5, 1.5]
1210
-
1211
- Returns:
1212
- (Series): [(0.5, 1.5], (1.0, 2.0], (2.0, 3.0]]
+ Fixture to get a Series [(0.5, 1.5], (1.0, 2.0], (2.0, 3.0]]
1213
1214
data = [val] + list(obj[1:])
1215
idx = IntervalIndex(data, dtype="Interval[float64]")
0 commit comments