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