def squeeze(self, dim=None):
        dims = dict(zip(self.dims, self.shape))
        return common.squeeze(self, dims, dim)
Return a new Variable object with squeezed data.
dataset/ETHPy150Open pydata/xarray/xarray/core/variable.py/Variable.squeeze