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

Function _validate_groupby_squeeze

xarray/core/groupby.py:448–456  ·  view source on GitHub ↗
(squeeze: Literal[False])

Source from the content-addressed store, hash-verified

446
447
448def _validate_groupby_squeeze(squeeze: Literal[False]) -> None:
449 # While we don't generally check the type of every arg, passing
450 # multiple dimensions as multiple arguments is common enough, and the
451 # consequences hidden enough (strings evaluate as true) to warrant
452 # checking here.
453 # A future version could make squeeze kwarg only, but would face
454 # backward-compat issues.
455 if squeeze is not False:
456 raise TypeError(f"`squeeze` must be False, but {squeeze!r} was supplied.")
457
458
459def _resolve_group(

Callers 4

groupbyMethod · 0.90
groupby_binsMethod · 0.90
groupbyMethod · 0.90
groupby_binsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…