code: def nDims(self):
          
          result = self._index.ndim
          assert result == 1, "Expected index to be 1D, got: {}D".format(result)
          return result
docs: The number of dimensions of the index. Will always be 1.