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

Function _index_or_data

xarray/core/accessor_dt.py:234–238  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

232
233
234def _index_or_data(obj):
235 if isinstance(obj.variable, IndexVariable):
236 return obj.to_index()
237 else:
238 return obj.data
239
240
241class TimeAccessor(Generic[T_DataArray]):

Callers 2

_date_fieldMethod · 0.85
_tslib_round_accessorMethod · 0.85

Calls 1

to_indexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…