Skip to content

Commit bbc92b2

Browse files
committed
Fixturize tests/frame/test_apply
1 parent 8a1c8ad commit bbc92b2

File tree

2 files changed

+171
-190
lines changed

2 files changed

+171
-190
lines changed

pandas/tests/frame/conftest.py

+12
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ def int_frame():
4040
return DataFrame({c: s for c, s in compat.iteritems(df)}, dtype=np.int64)
4141

4242

43+
@pytest.fixture
44+
def int_frame_const_col():
45+
"""
46+
Fixture for DataFrame of ints which are constant per column
47+
48+
Columns are ['A', 'B', 'C'], with values (per column): [1, 2, 3]
49+
"""
50+
df = DataFrame(np.tile(np.arange(3, dtype='int64'), 6).reshape(6, -1) + 1,
51+
columns=['A', 'B', 'C'])
52+
return df
53+
54+
4355
@pytest.fixture
4456
def datetime_frame():
4557
"""

0 commit comments

Comments
 (0)