MCPcopy
hub / github.com/nalepae/pandarallel / get_axis_int

Function get_axis_int

pandarallel/utils.py:90–96  ·  view source on GitHub ↗
(user_defined_function_kwargs: Dict[str, Any])

Source from the content-addressed store, hash-verified

88
89
90def get_axis_int(user_defined_function_kwargs: Dict[str, Any]):
91 axis = user_defined_function_kwargs.get("axis", 0)
92
93 if axis not in {0, 1, "index", "columns"}:
94 raise ValueError(f"No axis named {axis} for object type DataFrame")
95
96 return {0: 0, 1: 1, "index": 0, "columns": 1}[axis]
97
98
99class WorkerStatus(int, Enum):

Callers 2

get_chunksMethod · 0.85
get_reduce_extraMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…