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

Function from_series_or_scalar

xarray/tests/test_duck_array_ops.py:405–409  ·  view source on GitHub ↗
(se)

Source from the content-addressed store, hash-verified

403
404
405def from_series_or_scalar(se):
406 if isinstance(se, pd.Series):
407 return DataArray.from_series(se)
408 else: # scalar case
409 return DataArray(se)
410
411
412def series_reduce(da, func, dim, **kwargs):

Callers 1

series_reduceFunction · 0.85

Calls 2

DataArrayClass · 0.90
from_seriesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…