opensearch-project / opensearch-py

Python Client for OpenSearch
https://opensearch.org/docs/latest/clients/python/
Apache License 2.0
338 stars 170 forks source link

Removed deprecated numpy.float_ and update NumPy/Pandas imports #762

Closed saimedhi closed 3 months ago

saimedhi commented 3 months ago

Description

Issues Resolved

https://github.com/opensearch-project/opensearch-py/pull/761#issuecomment-2168018284

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

saimedhi commented 3 months ago

Is this possibly breaking anyone?

No, From my understanding np.float_ is equivalent to np.float64.

Deprecation message also suggests to use np.float64 instead. np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.