Skip to content

Commit 54c0155

Browse files
committed
Fix numpy deprecation by replacing np.unicode_ with np.str_ in type check
1 parent b078105 commit 54c0155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yellowbrick/contrib/missing/dispersion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_nan_locs(self, **kwargs):
9797
the coordinates in the matrix
9898
"""
9999
if np.issubdtype(self.X.dtype, np.bytes_) or np.issubdtype(
100-
self.X.dtype, np.unicode_
100+
self.X.dtype, np.str_
101101
):
102102
mask = np.where(self.X == "")
103103
nan_matrix = np.zeros(self.X.shape)

0 commit comments

Comments
 (0)