Skip to content

Commit 4d40722

Browse files
committed
Added comment on why two interpolate fill functions are needed
1 parent c25d1f8 commit 4d40722

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/internals/blocks.py

+5
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,11 @@ def _interpolate_with_fill(
11981198
values = self.values if inplace else self.values.copy()
11991199
fill_value = self._try_coerce_args(fill_value)
12001200

1201+
# We have to distinguish two cases:
1202+
# 1. When kwargs `max_gap` or `limit_area` are used: They are not
1203+
# supported by `missing.interpolate_2d()`. Using these kwargs only
1204+
# works by applying the fill along a certain axis.
1205+
# 2. All other cases: Then, `missing.interpolate_2d()` can be used.
12011206
if (max_gap is not None) or (limit_area is not None):
12021207

12031208
def func(x):

0 commit comments

Comments
 (0)