Skip to content

Commit f59a6ab

Browse files
jbrockmendeljreback
authored andcommitted
TST: remove never-used singleton fixtures (#24885)
1 parent df039bf commit f59a6ab

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

pandas/tests/frame/conftest.py

-54
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ def float_frame_with_na():
2929
return df
3030

3131

32-
@pytest.fixture
33-
def float_frame2():
34-
"""
35-
Fixture for DataFrame of floats with index of unique strings
36-
37-
Columns are ['D', 'C', 'B', 'A']
38-
"""
39-
return DataFrame(tm.getSeriesData(), columns=['D', 'C', 'B', 'A'])
40-
41-
4232
@pytest.fixture
4333
def bool_frame_with_na():
4434
"""
@@ -104,21 +94,6 @@ def mixed_float_frame():
10494
return df
10595

10696

107-
@pytest.fixture
108-
def mixed_float_frame2():
109-
"""
110-
Fixture for DataFrame of different float types with index of unique strings
111-
112-
Columns are ['A', 'B', 'C', 'D'].
113-
"""
114-
df = DataFrame(tm.getSeriesData())
115-
df.D = df.D.astype('float32')
116-
df.C = df.C.astype('float32')
117-
df.B = df.B.astype('float16')
118-
df.D = df.D.astype('float64')
119-
return df
120-
121-
12297
@pytest.fixture
12398
def mixed_int_frame():
12499
"""
@@ -135,19 +110,6 @@ def mixed_int_frame():
135110
return df
136111

137112

138-
@pytest.fixture
139-
def mixed_type_frame():
140-
"""
141-
Fixture for DataFrame of float/int/string columns with RangeIndex
142-
143-
Columns are ['a', 'b', 'c', 'float32', 'int32'].
144-
"""
145-
return DataFrame({'a': 1., 'b': 2, 'c': 'foo',
146-
'float32': np.array([1.] * 10, dtype='float32'),
147-
'int32': np.array([1] * 10, dtype='int32')},
148-
index=np.arange(10))
149-
150-
151113
@pytest.fixture
152114
def timezone_frame():
153115
"""
@@ -173,22 +135,6 @@ def empty_frame():
173135
return DataFrame({})
174136

175137

176-
@pytest.fixture
177-
def datetime_series():
178-
"""
179-
Fixture for Series of floats with DatetimeIndex
180-
"""
181-
return tm.makeTimeSeries(nper=30)
182-
183-
184-
@pytest.fixture
185-
def datetime_series_short():
186-
"""
187-
Fixture for Series of floats with DatetimeIndex
188-
"""
189-
return tm.makeTimeSeries(nper=30)[5:]
190-
191-
192138
@pytest.fixture
193139
def simple_frame():
194140
"""

0 commit comments

Comments
 (0)