def is_vector(self):
        if self.shape[0] == 1:
            return True
        else:
            return False
Create a new query builder for the pivot table.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.is_vector--crossover with--dataset/ETHPy150Open sdispater/orator/orator/orm/relations/belongs_to_many.py/BelongsToMany._new_pivot_query