MCPcopy
hub / github.com/ray-project/ray / sum

Method sum

python/ray/data/_internal/table_block.py:258–262  ·  view source on GitHub ↗
(self, on: str, ignore_nulls: bool)

Source from the content-addressed store, hash-verified

256 return accessor.count(ignore_nulls=ignore_nulls)
257
258 def sum(self, on: str, ignore_nulls: bool) -> Optional[U]:
259 self._validate_column(on)
260
261 accessor = BlockColumnAccessor.for_column(self._table[on])
262 return accessor.sum(ignore_nulls=ignore_nulls)
263
264 def min(self, on: str, ignore_nulls: bool) -> Optional[U]:
265 self._validate_column(on)

Calls 2

_validate_columnMethod · 0.95
for_columnMethod · 0.80

Tested by 15

test_global_tabular_sumFunction · 0.36
test_repartition_shuffleFunction · 0.36
test_sort_with_one_blockFunction · 0.36
test_unionFunction · 0.36
test_groupby_tabular_sumFunction · 0.36
normalizeFunction · 0.36
test_mix_equal_weightsFunction · 0.36