def stack(self, **dimensions):
        result = self
        for new_dim, dims in dimensions.items():
            result = result._stack_once(dims, new_dim)
        return result
Stack any number of existing dimensions into a single new dimension.
dataset/ETHPy150Open pydata/xarray/xarray/core/variable.py/Variable.stack