Skip to content

Commit 30164f3

Browse files
DOC: Correct link from b/ffill to fillna
1 parent 185fcbe commit 30164f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/core/generic.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -3296,12 +3296,16 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
32963296
return self._constructor(new_data).__finalize__(self)
32973297

32983298
def ffill(self, axis=None, inplace=False, limit=None, downcast=None):
3299-
"""Synonym for NDFrame.fillna(method='ffill')"""
3299+
"""
3300+
Synonym for :meth:`DataFrame.fillna(method='ffill') <DataFrame.fillna>`
3301+
"""
33003302
return self.fillna(method='ffill', axis=axis, inplace=inplace,
33013303
limit=limit, downcast=downcast)
33023304

33033305
def bfill(self, axis=None, inplace=False, limit=None, downcast=None):
3304-
"""Synonym for NDFrame.fillna(method='bfill')"""
3306+
"""
3307+
Synonym for :meth:`DataFrame.fillna(method='bfill') <DataFrame.fillna>`
3308+
"""
33053309
return self.fillna(method='bfill', axis=axis, inplace=inplace,
33063310
limit=limit, downcast=downcast)
33073311

0 commit comments

Comments
 (0)