Skip to content

Commit 49a91c6

Browse files
committed
Add docstrings to fixtures
1 parent 38afdfd commit 49a91c6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pandas/tests/series/conftest.py

+18
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,43 @@
77

88
@pytest.fixture
99
def datetime_series():
10+
"""
11+
Fixture for Series of floats with DatetimeIndex
12+
13+
See pandas.util.testing.makeTimeSeries
14+
"""
1015
s = tm.makeTimeSeries()
1116
s.name = 'ts'
1217
return s
1318

1419

1520
@pytest.fixture
1621
def string_series():
22+
"""
23+
Fixture for Series of floats with Index of unique strings
24+
25+
See pandas.util.testing.makeStringSeries
26+
"""
1727
s = tm.makeStringSeries()
1828
s.name = 'series'
1929
return s
2030

2131

2232
@pytest.fixture
2333
def object_series():
34+
"""
35+
Fixture for Series of dtype datetime64[ns] with Index of unique strings
36+
37+
See pandas.util.testing.makeObjectSeries
38+
"""
2439
s = tm.makeObjectSeries()
2540
s.name = 'objects'
2641
return s
2742

2843

2944
@pytest.fixture
3045
def empty_series():
46+
"""
47+
Fixture for empty Series
48+
"""
3149
return Series([], index=[])

0 commit comments

Comments
 (0)