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

Method _validate_axis

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

Source from the content-addressed store, hash-verified

4420
4421 @classmethod
4422 def _validate_axis(cls, axis=0, numeric_axis: bool = True) -> None | Literal[0, 1]:
4423 if axis not in (0, "index", None):
4424 raise ValueError(f"No axis named {axis} for Series")
4425 if numeric_axis:
4426 num_axis: dict[str | None, Literal[0, 1]] = {"index": 0}
4427 return num_axis.get(axis, axis)
4428 else:
4429 return axis
4430
4431 @derived_from(pd.Series)
4432 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