File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
@pytest .fixture
9
9
def datetime_series ():
10
+ """
11
+ Fixture for Series of floats with DatetimeIndex
12
+
13
+ See pandas.util.testing.makeTimeSeries
14
+ """
10
15
s = tm .makeTimeSeries ()
11
16
s .name = 'ts'
12
17
return s
13
18
14
19
15
20
@pytest .fixture
16
21
def string_series ():
22
+ """
23
+ Fixture for Series of floats with Index of unique strings
24
+
25
+ See pandas.util.testing.makeStringSeries
26
+ """
17
27
s = tm .makeStringSeries ()
18
28
s .name = 'series'
19
29
return s
20
30
21
31
22
32
@pytest .fixture
23
33
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
+ """
24
39
s = tm .makeObjectSeries ()
25
40
s .name = 'objects'
26
41
return s
27
42
28
43
29
44
@pytest .fixture
30
45
def empty_series ():
46
+ """
47
+ Fixture for empty Series
48
+ """
31
49
return Series ([], index = [])
You can’t perform that action at this time.
0 commit comments