File tree 2 files changed +1
-10
lines changed
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,7 @@ def apply_empty_result(self):
220
220
221
221
def apply_raw (self ):
222
222
""" apply to the values as a numpy array """
223
- result , reduction_success = libreduction .compute_reduction (
224
- self .values , self .f , axis = self .axis
225
- )
226
-
227
- # We expect np.apply_along_axis to give a two-dimensional result, or raise.
228
- if not reduction_success :
229
- result = np .apply_along_axis (self .f , self .axis , self .values )
223
+ result = np .apply_along_axis (self .f , self .axis , self .values )
230
224
231
225
# TODO: mixed type case
232
226
if result .ndim == 2 :
Original file line number Diff line number Diff line change @@ -745,9 +745,6 @@ def non_reducing_function(row):
745
745
df .apply (func , axis = 1 )
746
746
assert names == list (df .index )
747
747
748
- @pytest .mark .xfail (
749
- reason = "The 'run once' enhancement for apply_raw not implemented yet."
750
- )
751
748
def test_apply_raw_function_runs_once (self ):
752
749
# https://github.com/pandas-dev/pandas/issues/34506
753
750
You can’t perform that action at this time.
0 commit comments