xarray.DataArray.pint.dimensionality

DataArray.pint.dimensionality

get the dimensionality of the data or None if not a quantity.