MCPcopy
hub / github.com/pandas-dev/pandas / _construct_axes_dict

Method _construct_axes_dict

pandas/core/generic.py:509–517  ·  view source on GitHub ↗

Return an axes dictionary for myself.

(
        self, axes: Sequence[Axis] | None = None, **kwargs: AxisInt
    )

Source from the content-addressed store, hash-verified

507
508 @final
509 def _construct_axes_dict(
510 self, axes: Sequence[Axis] | None = None, **kwargs: AxisInt
511 ) -> dict:
512 """Return an axes dictionary for myself."""
513 d = {a: self._get_axis(a) for a in (axes or self._AXIS_ORDERS)}
514 # error: Argument 1 to "update" of "MutableMapping" has incompatible type
515 # "Dict[str, Any]"; expected "SupportsKeysAndGetItem[Union[int, str], Any]"
516 d.update(kwargs) # type: ignore[arg-type]
517 return d
518
519 @final
520 @classmethod

Callers 5

_whereMethod · 0.95
_setitem_frameMethod · 0.80
reindex_likeMethod · 0.80
rankerMethod · 0.80

Calls 2

_get_axisMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected