Closed GuyPago closed 5 months ago
This doesn't work on pandas<2
.
Good comment. I guess requiring >=2.0
from >=0.19
is a pretty major demand, isn't it? Even though the code itself supports 2.2+.
Correct, we're not going to require >=2
so the best bet would be to check if pandas > 2/2.1 like we do here and swap the behavior you want to use.
Considering the fact that applymap
is deprecated rather than removed, it feels like an overkill.
If you beg the differ, I'll integrate the change you proposed. Waiting for your response.
I made, and then reverted, this same change in https://github.com/pmorissette/ffn/pull/224. So I wasn't really keen to do the work just to avoid a deprecation warning.
Previously,
map
was used forSeries
class whileapplymap
was used for theDataFrame
class. Now Pandas has deprecatedapplymap
and suggest usingmap
forDataFrame
as well.