MCPcopy Create free account
hub / github.com/dask/dask / _validate_axis

Method _validate_axis

dask/dataframe/dask_expr/_collection.py:4403–4410  ·  view source on GitHub ↗
(cls, axis=0, numeric_axis: bool = True)

Source from the content-addressed store, hash-verified

4401
4402 @classmethod
4403 def _validate_axis(cls, axis=0, numeric_axis: bool = True) -> None | Literal[0, 1]:
4404 if axis not in (0, "index", None):
4405 raise ValueError(f"No axis named {axis} for Series")
4406 if numeric_axis:
4407 num_axis: dict[str | None, Literal[0, 1]] = {"index": 0}
4408 return num_axis.get(axis, axis)
4409 else:
4410 return axis
4411
4412 @derived_from(pd.Series)
4413 def squeeze(self):

Callers 15

clipMethod · 0.95
_comparison_opMethod · 0.95
applyMethod · 0.95
sumMethod · 0.45
prodMethod · 0.45
varMethod · 0.45
stdMethod · 0.45
skewMethod · 0.45
kurtosisMethod · 0.45
semMethod · 0.45
meanMethod · 0.45
maxMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected