how to replace nans by preceding values in pandas dataframe?,"df.fillna(method='ffill', inplace=True)"