Skip to content

Commit

Permalink
Update np.object_
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Jul 8, 2024
1 parent 6992fd9 commit c4584bc
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit c4584bc

Please sign in to comment.