def _get_relative_sizes_above(self, index):
        """Return the sum of the heights of all clients above the provided index"""
        column = self._get_column(index - 1)
        return sum(self.relative_sizes[column.start : index - 1])
Return the sum of the heights of all clients above the provided index
libqtile/layout/xmonad.py