reduce_dims: Reduce dimensions of data

This will remove any dimensions with only one value. For example, if only selecting one vertical level, the vertical dimension will be removed.


If you want to remove any dimensions that have only one value, do the following:

>>> ds.reduce_dims("")

Note that this will work lazily. This method is most useful when you want to simplify datasets before exporting them to something like a pandas dataframe.