scipp.nanhist#

scipp.nanhist(x: Union[scipp._scipp.core.Variable, scipp._scipp.core.DataArray], arg_dict: Optional[Dict[str, Union[int, scipp._scipp.core.Variable]]] = None, /, **kwargs: Union[int, scipp._scipp.core.Variable]) scipp._scipp.core.DataArray#
scipp.nanhist(x: scipp.core.data_group.DataGroup, arg_dict: Optional[Dict[str, Union[int, scipp._scipp.core.Variable]]] = None, /, **kwargs: Union[int, scipp._scipp.core.Variable]) scipp.core.data_group.DataGroup

Compute a histogram, skipping NaN values.

Like scipp.hist(), but NaN values are skipped. See there for details and examples.

Parameters
  • x – Input data.

  • arg_dict – Dictionary mapping dimension labels to binning parameters.

  • **kwargs – Mapping of dimension label to corresponding binning parameters.

Returns

Histogrammed data.