Skip to content

Commit 6ea170f

Browse files
committed
Fix a bug for Panel.fillna/ffill
1 parent e346c66 commit 6ea170f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/core/generic.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -3489,10 +3489,12 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
34893489
elif self.ndim == 3:
34903490

34913491
# fill in 2d chunks
3492-
result = dict([(col, s.fillna(method=method, value=value))
3493-
for col, s in self.iteritems()])
3494-
new_obj = self._constructor.\
3495-
from_dict(result).__finalize__(self)
3492+
result = {col: s.fillna(method=method, value=value,
3493+
limit=limit)
3494+
for col, s in self.iteritems()}
3495+
3496+
new_obj = (self._constructor
3497+
.from_dict(result).__finalize__(self))
34963498
new_data = new_obj._data
34973499

34983500
else:

0 commit comments

Comments
 (0)