Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMPAT: remove typing from Graph.describe #719

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libpysal/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down