pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
1.87k stars 282 forks source link

Fix pandas deprecation warnings #202

Closed nathanramoscfa closed 7 months ago

nathanramoscfa commented 10 months ago

The pandas upgrade from 2.0.3 to 2.1.0 is causing warnings to be generated related to the following deprecations:

1) Deprecated the method and limit keywords on Series.fillna(), DataFrame.fillna(), SeriesGroupBy.fillna(), DataFrameGroupBy.fillna(), and Resampler.fillna(), use obj.bfill() or obj.ffill() instead (GH 53394)

2) Deprecated positional indexing on Series with Series.__getitem__() and Series.__setitem__(), in a future version ser[item] will always interpret item as a label, not a position (GH 50617)