Skip to content

Commit 1d99b34

Browse files
clean-up
1 parent 676c28f commit 1d99b34

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/core/apply.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,12 +1172,7 @@ def apply_with_numba(self) -> dict[int, Any]:
11721172
from pandas.core._numba.extensions import set_numba_data
11731173

11741174
index = self.obj.index
1175-
# if index.dtype == "string":
1176-
# index = index.astype(object)
1177-
11781175
columns = self.obj.columns
1179-
# if columns.dtype == "string":
1180-
# columns = columns.astype(object)
11811176

11821177
# Convert from numba dict to regular dict
11831178
# Our isinstance checks in the df constructor don't pass for numbas typed dict

pandas/tests/apply/test_frame_apply.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
from pandas._config import using_string_dtype
88

9+
from pandas.compat import HAS_PYARROW
10+
911
from pandas.core.dtypes.dtypes import CategoricalDtype
1012

1113
import pandas as pd
@@ -1244,6 +1246,9 @@ def test_agg_multiple_mixed():
12441246
tm.assert_frame_equal(result, expected)
12451247

12461248

1249+
@pytest.mark.xfail(
1250+
using_string_dtype() and not HAS_PYARROW, reason="TODO(infer_string)"
1251+
)
12471252
def test_agg_multiple_mixed_raises():
12481253
# GH 20909
12491254
mdf = DataFrame(

0 commit comments

Comments
 (0)