ensure_axes_array#
- ensure_axes_array(axes: Axes | np.ndarray[Any, Axes] | UnsetType = Unset, axis: UnsetType = Unset) np.ndarray[Any, Axes][source]#
Ensure that axes have flatten method even if it is a single axis.
- Parameters:
- Returns:
Numpy ndarray of axes.
- Return type:
np.ndarray[Any, Axes]
- Raises:
ValueError – If
axeswas not provided,axshould be a required argument but to facilitate the deprecationaxis->axesit has a default ofUnset.