scipp.GroupByDataArray#

class scipp.GroupByDataArray#

GroupBy object implementing split-apply-combine mechanism.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

all(self, dim)

Element-wise all over the specified dimension within a group.

any(self, dim)

Element-wise any over the specified dimension within a group.

concat(self, dim)

Element-wise concat over the specified dimension within a group.

max(self, dim)

Element-wise max over the specified dimension within a group.

mean(self, dim)

Element-wise mean over the specified dimension within a group.

min(self, dim)

Element-wise min over the specified dimension within a group.

nanmax(self, dim)

Element-wise nanmax over the specified dimension within a group.

nanmin(self, dim)

Element-wise nanmin over the specified dimension within a group.

nansum(self, dim)

Element-wise nansum over the specified dimension within a group.

sum(self, dim)

Element-wise sum over the specified dimension within a group.

Attributes

bins

all(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise all over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the all.

Returns:

The computed all over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

any(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise any over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the any.

Returns:

The computed any over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

concat(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise concat over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the concat.

Returns:

The computed concat over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

max(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise max over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the max.

Returns:

The computed max over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

mean(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise mean over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the mean.

Returns:

The computed mean over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

min(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise min over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the min.

Returns:

The computed min over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

nanmax(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise nanmax over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the nanmax.

Returns:

The computed nanmax over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

nanmin(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise nanmin over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the nanmin.

Returns:

The computed nanmin over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

nansum(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise nansum over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the nansum.

Returns:

The computed nansum over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray

sum(self: scipp._scipp.core.GroupByDataArray, dim: str) scipp._scipp.core.DataArray#

Element-wise sum over the specified dimension within a group.

Parameters:

dim (Dim) – Dimension to reduce when computing the sum.

Returns:

The computed sum over each group, combined along the dimension specified when calling scipp.groupby().

Return type:

DataArray