Skip to content

Commit

Permalink
Update numpy requirement from <2.0.0 to <3.0.0 (opengeos#821)
Browse files Browse the repository at this point in the history
* Update numpy requirement from <2.0.0 to <3.0.0

Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v0.2.0...v2.0.0)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update np.object_

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Qiusheng Wu <[email protected]>
  • Loading branch information
dependabot[bot] and giswqs authored Jul 8, 2024
1 parent bed448b commit 83cbfde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5127,7 +5127,7 @@ def classify(
# Convert categorical data to numeric
init_column = None
value_list = None
if np.issubdtype(df[column].dtype, np.object0):
if np.issubdtype(df[column].dtype, np.object_):
value_list = df[column].unique().tolist()
value_list.sort()
df["category"] = df[column].replace(value_list, range(0, len(value_list)))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ipyleaflet
ipyvuetify
ipywidgets
matplotlib
numpy<2.0.0
numpy<3.0.0
pandas
plotly
pyshp
Expand Down

0 comments on commit 83cbfde

Please sign in to comment.