We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a14d06 commit ba21475Copy full SHA for ba21475
pandas/core/internals/blocks.py
@@ -1084,6 +1084,23 @@ def interpolate(
1084
# If there are no NAs, then interpolate is a no-op
1085
return [self] if inplace else [self.copy()]
1086
1087
+ if self.is_object and self.ndim == 2 and self.shape[0] != 1 and axis == 0:
1088
+ # split improves performance in ndarray.copy()
1089
+ return self.split_and_operate(
1090
+ type(self).interpolate,
1091
+ method,
1092
+ axis,
1093
+ index,
1094
+ inplace,
1095
+ limit,
1096
+ limit_direction,
1097
+ limit_area,
1098
+ fill_value,
1099
+ coerce,
1100
+ downcast,
1101
+ **kwargs,
1102
+ )
1103
+
1104
try:
1105
m = missing.clean_fill_method(method)
1106
except ValueError:
0 commit comments