Removed deprecated numpy.float_ and update NumPy/Pandas imports (#762)
Signed-off-by: saimedhi <saimedhi@amazon.com>
This commit is contained in:
committed by
GitHub
parent
87e531b943
commit
1739a988d3
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -111,7 +111,6 @@ class JSONSerializer(Serializer):
|
||||
elif isinstance(
|
||||
data,
|
||||
(
|
||||
np.float_,
|
||||
np.float16,
|
||||
np.float32,
|
||||
np.float64,
|
||||
|
||||
@@ -106,7 +106,6 @@ class TestJSONSerializer(TestCase):
|
||||
|
||||
ser = JSONSerializer()
|
||||
for np_type in (
|
||||
np.float_,
|
||||
np.float32,
|
||||
np.float64,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user