Data Analysis with Python - Data Cleaning with DataFrames

Tell us what’s happening:

FYI, the following example code:

s = pd.Series([np.nan, 1, 2, np.nan, 3])
s = s.fillna(method='ffill')

triggers a FutureWarning:

FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.
  s = s.fillna(method='ffill')

I apologize if this is not the appropriate platform for reporting this.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Data Analysis with Python - Data Cleaning with DataFrames

Thank you for reporting this. It will be addressed in the upcoming data analysis certification.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.