From 7d774830bfa248023256b8758c3d1367d6c532bc Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 1 Mar 2018 09:31:17 +0100 Subject: [PATCH] CLN: remove redundant clean_fill_method calls --- pandas/core/generic.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c4eb7dd7e7a7e..79c783040dc97 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -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: @@ -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()} @@ -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,