DataFrame fillna(method = "ffill") and fillna(method = "bfill") already deprecated
Got this error when I tried running the fillna with "method" parameter:
TypeError: NDFrame.fillna() got an unexpected keyword argument 'method'
Google AI answer:
The method parameter in DataFrame.fillna() was deprecated in pandas 2.1 and completely removed in pandas 3.0. Instead of passing method inside fillna(), you should call the dedicated .ffill() or .bfill() methods directly on your DataFrame or Series.
0 answers ( 0 marked as helpful)
