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

Method _validate_axis

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

Source from the content-addressed store, hash-verified

4455
4456 @classmethod
4457 def _validate_axis(cls, axis=0, numeric_axis: bool = True) -> None | Literal[0, 1]:
4458 if axis not in (0, "index", None):
4459 raise ValueError(f"No axis named {axis} for Series")
4460 if numeric_axis:
4461 num_axis: dict[str | None, Literal[0, 1]] = {"index": 0}
4462 return num_axis.get(axis, axis)
4463 else:
4464 return axis
4465
4466 @derived_from(pd.Series)
4467 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