MCPcopy Index your code
hub / github.com/pydata/xarray / _iter_grouped_shortcut

Method _iter_grouped_shortcut

xarray/core/groupby.py:1576–1584  ·  view source on GitHub ↗

Fast version of `_iter_grouped` that yields Variables without metadata

(self)

Source from the content-addressed store, hash-verified

1574 return self._dims
1575
1576 def _iter_grouped_shortcut(self):
1577 """Fast version of `_iter_grouped` that yields Variables without
1578 metadata
1579 """
1580 self._raise_if_by_is_chunked()
1581 var = self._obj.variable
1582 for _idx, indices in enumerate(self.encoded.group_indices):
1583 if indices:
1584 yield var[{self._group_dim: indices}]
1585
1586 def _concat_shortcut(self, applied, dim, positions=None):
1587 # nb. don't worry too much about maintaining this method -- it does

Callers 1

mapMethod · 0.95

Calls 1

Tested by

no test coverage detected