From 4a2b131fdf7cd35c77762475e024a679543d70c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Fri, 30 Jun 2023 13:12:17 +0200 Subject: [PATCH] Remove deprecated np.product (#660) --- geoviews/data/iris.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoviews/data/iris.py b/geoviews/data/iris.py index 9bdb2afb..2552751f 100644 --- a/geoviews/data/iris.py +++ b/geoviews/data/iris.py @@ -352,7 +352,7 @@ def length(cls, dataset): """ Returns the total number of samples in the dataset. """ - return np.product([len(d.points) for d in dataset.data.coords(dim_coords=True)], dtype=np.intp) + return np.prod([len(d.points) for d in dataset.data.coords(dim_coords=True)], dtype=np.intp) @classmethod