Skip to content

Commit 6515aa6

Browse files
Shawn LiuShawn Liu
authored andcommitted
Make fixture docstring one line only
1 parent fed8820 commit 6515aa6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

pandas/tests/series/indexing/test_setitem.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,8 +1179,7 @@ def test_setitem_example(self):
11791179
@pytest.fixture
11801180
def obj(self):
11811181
"""
1182-
Fixture to create a Series instance using IntervalIndex
1183-
[(0, 1], (1, 2], (2, 3]]
1182+
Fixture to create a Series [(0, 1], (1, 2], (2, 3]]
11841183
"""
11851184
idx = IntervalIndex.from_breaks(range(4))
11861185
return Series(idx)
@@ -1202,14 +1201,7 @@ def key(self):
12021201
@pytest.fixture
12031202
def expected(self, obj, val):
12041203
"""
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]]
1204+
Fixture to get a Series [(0.5, 1.5], (1.0, 2.0], (2.0, 3.0]]
12131205
"""
12141206
data = [val] + list(obj[1:])
12151207
idx = IntervalIndex(data, dtype="Interval[float64]")

0 commit comments

Comments
 (0)