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]
|
## [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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user