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

Signed-off-by: saimedhi <saimedhi@amazon.com>
This commit is contained in:
Sai Medhini Reddy Maryada
2024-06-17 15:19:13 -07:00
committed by GitHub
parent 87e531b943
commit 1739a988d3
4 changed files with 3 additions and 5 deletions
+1
View File
@@ -4,6 +4,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased] ## [Unreleased]
### Added ### Added
### Changed ### Changed
- Removed deprecated `numpy.float_` and update NumPy/Pandas imports ([#762](https://github.com/opensearch-project/opensearch-py/pull/762))
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
+2 -3
View File
@@ -11,9 +11,8 @@ deepmerge
Events Events
setuptools setuptools
# No wheels for Python 3.10 yet! numpy; python_version<="3.12"
numpy; python_version<"3.10" pandas; python_version<="3.12"
pandas; python_version<"3.10"
pyyaml>=5.4 pyyaml>=5.4
-1
View File
@@ -111,7 +111,6 @@ class JSONSerializer(Serializer):
elif isinstance( elif isinstance(
data, data,
( (
np.float_,
np.float16, np.float16,
np.float32, np.float32,
np.float64, np.float64,
-1
View File
@@ -106,7 +106,6 @@ class TestJSONSerializer(TestCase):
ser = JSONSerializer() ser = JSONSerializer()
for np_type in ( for np_type in (
np.float_,
np.float32, np.float32,
np.float64, np.float64,
): ):