sharkutilities / pandas-wizard

Utility Functions, Wrappers (w/o exotic dependencies) for pandas Library
https://pypi.org/project/pandas-wizard/
MIT License
4 stars 0 forks source link

[Bug]: Older Version of NumPy/np has no Attribute "method" #7

Closed ZenithClown closed 6 months ago

ZenithClown commented 6 months ago

Contact Details (optional)

No response

What happened?

As per issue: numpy/numpy#21283 the attribute interpolation was changed to method (np.__version__ > 1.22). Adding support for aggregate function for older releases may be done with a warning.

Python Version

3.9 (default)

What type of operating system are you using?

Windows 11

Relevant System Configuration

No response

Relevant log output

TypeError: _percentile_dispatcher() got an unexpected keyword argument 'method'

Code of Conduct

ZenithClown commented 6 months ago
ZenithClown commented 6 months ago
  • [x] Error may be interpolation can only be 'linear', 'lower' 'higher', 'midpoint', or 'nearest' - if the method/interpolation value is passed of a newer version, but the system has an older version.

Fixed w/o considering argument interpolation/method in aggregation, warning is raised to alert user.