From 3e940a14336f9fd0d0ce031e9b5604b361bfe35d Mon Sep 17 00:00:00 2001 From: Yann Harel Date: Fri, 28 Apr 2023 14:50:46 -0700 Subject: [PATCH] fixed deprecated use of np.bool --- ptitprince/PtitPrince.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ptitprince/PtitPrince.py b/ptitprince/PtitPrince.py index 438ba8d..6a3b4ef 100644 --- a/ptitprince/PtitPrince.py +++ b/ptitprince/PtitPrince.py @@ -42,10 +42,10 @@ def draw_stripplot(self, ax, kws): if self.plot_hues is None or not self.dodge: if self.hue_names is None: - hue_mask = np.ones(group_data.size, np.bool) + hue_mask = np.ones(group_data.size, bool) else: hue_mask = np.array([h in self.hue_names - for h in self.plot_hues[i]], np.bool) + for h in self.plot_hues[i]], bool) strip_data = group_data[hue_mask] point_colors = np.asarray(self.point_colors[i][hue_mask])