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

Function collect_dict_values

xarray/computation/apply_ufunc.py:378–384  ·  view source on GitHub ↗
(
    objects: Iterable[Mapping | Any], keys: Iterable, fill_value: object = None
)

Source from the content-addressed store, hash-verified

376
377
378def collect_dict_values(
379 objects: Iterable[Mapping | Any], keys: Iterable, fill_value: object = None
380) -> list[list]:
381 return [
382 [obj.get(key, fill_value) if is_dict_like(obj) else obj for obj in objects]
383 for key in keys
384 ]
385
386
387def _as_variables_or_variable(arg) -> Variable | tuple[Variable]:

Callers 2

test_collect_dict_valuesFunction · 0.90

Calls 2

is_dict_likeFunction · 0.90
getMethod · 0.45

Tested by 1

test_collect_dict_valuesFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…