Skip to content

Commit 3b4eb8d

Browse files
jorisvandenbosschejreback
authored andcommitted
CLN: remove redundant clean_fill_method calls (#19947)
1 parent c8859b5 commit 3b4eb8d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/generic.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -4711,7 +4711,7 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
47114711
if axis is None:
47124712
axis = 0
47134713
axis = self._get_axis_number(axis)
4714-
method = missing.clean_fill_method(method)
4714+
47154715
from pandas import DataFrame
47164716
if value is None:
47174717

@@ -4732,7 +4732,6 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
47324732

47334733
# 3d
47344734
elif self.ndim == 3:
4735-
47364735
# fill in 2d chunks
47374736
result = {col: s.fillna(method=method, value=value)
47384737
for col, s in self.iteritems()}
@@ -4742,7 +4741,6 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
47424741

47434742
else:
47444743
# 2d or less
4745-
method = missing.clean_fill_method(method)
47464744
new_data = self._data.interpolate(method=method, axis=axis,
47474745
limit=limit, inplace=inplace,
47484746
coerce=True,

0 commit comments

Comments
 (0)