pandas.Series.fillna¶
- Series.fillna(value=None, method='pad')¶
Fill NA/NaN values using the specified method
Parameters : value : any kind (should be same type as array)
Value to use to fill holes (e.g. 0)
method : {‘backfill’, ‘bfill’, ‘pad’, ‘ffill’, None}, default ‘pad’
Method to use for filling holes in reindexed Series pad / ffill: propagate last valid observation forward to next valid backfill / bfill: use NEXT valid observation to fill gap
Returns : filled : Series