File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -8052,10 +8052,8 @@ def interpolate(
8052
8052
)
8053
8053
else :
8054
8054
index = missing .get_interp_index (method , obj .index )
8055
- axis = self ._info_axis_number
8056
8055
new_data = obj ._mgr .interpolate (
8057
8056
method = method ,
8058
- axis = axis ,
8059
8057
index = index ,
8060
8058
limit = limit ,
8061
8059
limit_direction = limit_direction ,
Original file line number Diff line number Diff line change @@ -1396,7 +1396,6 @@ def interpolate(
1396
1396
self ,
1397
1397
* ,
1398
1398
method : InterpolateOptions ,
1399
- axis : AxisInt ,
1400
1399
index : Index ,
1401
1400
inplace : bool = False ,
1402
1401
limit : int | None = None ,
@@ -1427,27 +1426,12 @@ def interpolate(
1427
1426
return [self .copy (deep = False )]
1428
1427
return [self ] if inplace else [self .copy ()]
1429
1428
1430
- if self .is_object and self .ndim == 2 and self .shape [0 ] != 1 and axis == 0 :
1431
- # split improves performance in ndarray.copy()
1432
- return self .split_and_operate (
1433
- type (self ).interpolate ,
1434
- method = method ,
1435
- axis = axis ,
1436
- index = index ,
1437
- inplace = inplace ,
1438
- limit = limit ,
1439
- limit_direction = limit_direction ,
1440
- limit_area = limit_area ,
1441
- downcast = downcast ,
1442
- ** kwargs ,
1443
- )
1444
-
1445
1429
copy , refs = self ._get_refs_and_copy (using_cow , inplace )
1446
1430
1447
1431
# Dispatch to the EA method.
1448
1432
new_values = self .array_values .interpolate (
1449
1433
method = method ,
1450
- axis = axis ,
1434
+ axis = self . ndim - 1 ,
1451
1435
index = index ,
1452
1436
limit = limit ,
1453
1437
limit_direction = limit_direction ,
You can’t perform that action at this time.
0 commit comments