MCPcopy
hub / github.com/pydata/xarray / sum

Method sum

xarray/computation/weighted.py:477–486  ·  view source on GitHub ↗
(
        self,
        dim: Dims = None,
        *,
        skipna: bool | None = None,
        keep_attrs: bool | None = None,
    )

Source from the content-addressed store, hash-verified

475 )
476
477 def sum(
478 self,
479 dim: Dims = None,
480 *,
481 skipna: bool | None = None,
482 keep_attrs: bool | None = None,
483 ) -> T_Xarray:
484 return self._implementation(
485 self._weighted_sum, dim=dim, skipna=skipna, keep_attrs=keep_attrs
486 )
487
488 def mean(
489 self,

Callers 15

compute_chunksMethod · 0.45
compute_chunksMethod · 0.45
_maybe_null_outFunction · 0.45
_nanmean_ddof_objectFunction · 0.45
_weighted_quantile_1dMethod · 0.45
polyfitFunction · 0.45
_meanMethod · 0.45
_countsMethod · 0.45
_cov_corrFunction · 0.45
sum_addFunction · 0.45

Calls 1

_implementationMethod · 0.95

Tested by 15

sum_addFunction · 0.36
test_apply_missing_dimsFunction · 0.36
test_autocovFunction · 0.36
test_dot_align_coordsFunction · 0.36
test_weighted_sum_no_nanFunction · 0.36
test_weighted_sum_nanFunction · 0.36
expected_weightedFunction · 0.36