tommyod / KDEpy

Kernel Density Estimation in Python
https://kdepy.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
584 stars 90 forks source link

Compatibility with numpy 2 #168

Closed jonimatix closed 3 weeks ago

jonimatix commented 3 months ago

Hi,

Can you please update the library to be compatible with numpy 2?

The below error is thrown when running: estimator.fit(df['amount'].values).evaluate(1000)

np.asfarray was removed in the NumPy 2.0 release. Use np.asarray with a proper dtype instead.

Thanks

tommyod commented 3 months ago

Can you please update the library to be compatible with numpy 2?

Very open to PRs if you, or anyone else, wants to have a go at it. :)

I'll probably look into it eventually myself, but no guarantees as to when that happens.

tommyod commented 3 weeks ago

Closed by #171