Skip to content

Commit

Permalink
REF/TST: Move Series/DataFrame apply tests to tests.apply (#39312)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Jan 21, 2021
1 parent c3012b1 commit b7184b9
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
18 changes: 18 additions & 0 deletions pandas/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,24 @@ def float_frame():
return DataFrame(tm.getSeriesData())


@pytest.fixture
def mixed_type_frame():
"""
Fixture for DataFrame of float/int/string columns with RangeIndex
Columns are ['a', 'b', 'c', 'float32', 'int32'].
"""
return DataFrame(
{
"a": 1.0,
"b": 2,
"c": "foo",
"float32": np.array([1.0] * 10, dtype="float32"),
"int32": np.array([1] * 10, dtype="int32"),
},
index=np.arange(10),
)


# ----------------------------------------------------------------
# Scalars
# ----------------------------------------------------------------
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions pandas/tests/frame/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,24 +183,6 @@ def mixed_int_frame():
return df


@pytest.fixture
def mixed_type_frame():
"""
Fixture for DataFrame of float/int/string columns with RangeIndex
Columns are ['a', 'b', 'c', 'float32', 'int32'].
"""
return DataFrame(
{
"a": 1.0,
"b": 2,
"c": "foo",
"float32": np.array([1.0] * 10, dtype="float32"),
"int32": np.array([1] * 10, dtype="int32"),
},
index=np.arange(10),
)


@pytest.fixture
def timezone_frame():
"""
Expand Down
Empty file.

0 comments on commit b7184b9

Please sign in to comment.