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]
### Added
### Changed
- Removed deprecated `numpy.float_` and update NumPy/Pandas imports ([#762](https://github.com/opensearch-project/opensearch-py/pull/762))
### Deprecated
### Removed
### Fixed
+2 -3
View File
@@ -11,9 +11,8 @@ deepmerge
Events
setuptools
# No wheels for Python 3.10 yet!
numpy; python_version<"3.10"
pandas; python_version<"3.10"
numpy; python_version<="3.12"
pandas; python_version<="3.12"
pyyaml>=5.4
-1
View File
@@ -111,7 +111,6 @@ class JSONSerializer(Serializer):
elif isinstance(
data,
(
np.float_,
np.float16,
np.float32,
np.float64,
-1
View File
@@ -106,7 +106,6 @@ class TestJSONSerializer(TestCase):
ser = JSONSerializer()
for np_type in (
np.float_,
np.float32,
np.float64,
):