A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/docs/reference/api/pandas.api.extensions.ExtensionArray._reduce.html below:

pandas.api.extensions.ExtensionArray._reduce — pandas 2.3.1 documentation

pandas.api.extensions.ExtensionArray._reduce#
ExtensionArray._reduce(name, *, skipna=True, keepdims=False, **kwargs)[source]#

Return a scalar result of performing the reduction operation.

Parameters:
namestr

Name of the function, supported values are: { any, all, min, max, sum, mean, median, prod, std, var, sem, kurt, skew }.

skipnabool, default True

If True, skip NaN values.

keepdimsbool, default False

If False, a scalar is returned. If True, the result has dimension with size one along the reduced axis.

Added in version 2.1: This parameter is not required in the _reduce signature to keep backward compatibility, but will become required in the future. If the parameter is not found in the method signature, a FutureWarning will be emitted.

**kwargs

Additional keyword arguments passed to the reduction function. Currently, ddof is the only supported kwarg.

Returns:
scalar
Raises:
TypeErrorsubclass does not define reductions

Examples

>>> pd.array([1, 2, 3])._reduce("min")
1

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4