xarray.IndexVariable.get_axis_num
xarray.IndexVariable.get_axis_num
-
IndexVariable.get_axis_num(dim)[source]
Return axis number(s) corresponding to dimension(s) in this array.
- Parameters
dim (str or iterable of str) – Dimension name(s) for which to lookup axes.
- Returns
int or tuple of int – Axis number or numbers corresponding to the given dimensions.