pandas.DataFrame.pad#

DataFrame.pad(*, axis=None, inplace=False, limit=None, downcast=None)[source]#

Synonym for DataFrame.fillna() with method='ffill'.

Deprecated since version 2.0: Series/DataFrame.pad is deprecated. Use Series/DataFrame.ffill instead.

Returns
Series/DataFrame or None

Object with missing values filled or None if inplace=True.