Skip to content

Commit f59fb52

Browse files
committed
Revert test for numba apply with string axis due to docstring validation issues
1 parent 2b59eeb commit f59fb52

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pandas/tests/apply/test_numba.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pandas import (
99
DataFrame,
1010
Index,
11-
Series,
1211
)
1312
import pandas._testing as tm
1413
from pandas.util.version import Version
@@ -128,20 +127,3 @@ def test_numba_unsupported_dtypes(apply_axis):
128127
"which is not supported by the numba engine.",
129128
):
130129
df["c"].to_frame().apply(f, engine="numba", axis=apply_axis)
131-
132-
133-
@pytest.mark.parametrize(
134-
"axis, expected",
135-
[
136-
("index", Series([5.0, 7.0, 9.0], index=["a", "b", "c"])),
137-
("columns", Series([6.0, 15.0], index=[0, 1])),
138-
],
139-
)
140-
def test_numba_apply_with_string_axis(axis, expected):
141-
df = DataFrame([[1, 2, 3], [4, 5, 6]], columns=["a", "b", "c"])
142-
143-
def f(x):
144-
return x.sum()
145-
146-
result = df.apply(f, engine="numba", axis=axis, raw=True)
147-
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)