(self)
return len(inter) == max(map(len, sets))
Checks if all input datasets have same ids.
Checks if all input datasets have same ids.
Checks if all input datasets have same ids .
def data_equality(self):
        """ Checks if all input datasets have same ids. """
        if not self.data.values():
            return True
        sets = []
        for val in self.data.values():
            sets.append(set(val.table.ids))
        inter = reduce(set.intersection, sets)
        return len(inter) == max(map(len, sets))
def data_equality ( self ) : if not self . data . values ( ) : return True sets = [ ] for val in self . data . values ( ) : sets . append ( set ( val . table . ids ) ) inter = reduce ( set . intersection , sets ) return len ( inter ) == max ( map ( len , sets ) )