Skip to content

Commit

Permalink
CLN: remove redundant clean_fill_method calls (pandas-dev#19947)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored and jreback committed Mar 1, 2018
1 parent c8859b5 commit 3b4eb8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4711,7 +4711,7 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
if axis is None:
axis = 0
axis = self._get_axis_number(axis)
method = missing.clean_fill_method(method)

from pandas import DataFrame
if value is None:

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

# 3d
elif self.ndim == 3:

# fill in 2d chunks
result = {col: s.fillna(method=method, value=value)
for col, s in self.iteritems()}
Expand All @@ -4742,7 +4741,6 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,

else:
# 2d or less
method = missing.clean_fill_method(method)
new_data = self._data.interpolate(method=method, axis=axis,
limit=limit, inplace=inplace,
coerce=True,
Expand Down

0 comments on commit 3b4eb8d

Please sign in to comment.