Skip to content

Commit 40646e2

Browse files
committed
Remove DataFrame import
1 parent 2ee7b15 commit 40646e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/apply.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
from pandas.core.dtypes.generic import ABCSeries
1818

1919
from pandas.core.construction import create_series_with_explicit_dtype
20-
from pandas.core.frame import DataFrame
2120

2221
if TYPE_CHECKING:
23-
from pandas import Series, Index
22+
from pandas import DataFrame, Series, Index
2423

2524
ResType = Dict[int, Any]
2625

@@ -309,7 +308,7 @@ def apply_standard(self):
309308
return self.obj._constructor_sliced(result, index=labels)
310309
else:
311310
if isinstance(partial_result, ABCSeries):
312-
partial_result = DataFrame.infer_objects(partial_result)
311+
partial_result = partial_result.infer_objects()
313312

314313
# compute the result using the series generator
315314
results, res_index = self.apply_series_generator(partial_result)

0 commit comments

Comments
 (0)