From c14f583b034833828579d146df260404f668be05 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Mon, 10 Jun 2024 11:04:08 +0200 Subject: [PATCH] COMPAT: remove typing from Graph.describe --- libpysal/graph/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libpysal/graph/base.py b/libpysal/graph/base.py index 398c89770..a9acc167a 100644 --- a/libpysal/graph/base.py +++ b/libpysal/graph/base.py @@ -2020,10 +2020,10 @@ def aggregate(self, func): def describe( self, - y: np.typing.NDArray[np.float_] | pd.Series, - q: tuple[float, float] | None = None, - statistics: list[str] | None = None, - ) -> pd.DataFrame: + y, + q=None, + statistics=None, + ): """Describe the distribution of ``y`` values within the neighbors of each node. Given the graph, computes the descriptive statistics of values within the @@ -2044,7 +2044,7 @@ def describe( Parameters ---------- - y : NDArray[np.float_] | Series + y : NDArray[np.float64] | Series An 1D array of numeric values to be described. q : tuple[float, float] | None, optional Tuple of percentages for the percentiles to compute.