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

Method factorize

xarray/groupers.py:157–170  ·  view source on GitHub ↗

Creates intermediates necessary for GroupBy. Parameters ---------- group : DataArray DataArray we are grouping by. Returns ------- EncodedGroups

(self, group: T_Group)

Source from the content-addressed store, hash-verified

155
156 @abstractmethod
157 def factorize(self, group: T_Group) -> EncodedGroups:
158 """
159 Creates intermediates necessary for GroupBy.
160
161 Parameters
162 ----------
163 group : DataArray
164 DataArray we are grouping by.
165
166 Returns
167 -------
168 EncodedGroups
169 """
170 pass
171
172 @abstractmethod
173 def reset(self) -> Self:

Callers 1

unique_value_groupsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected