pydit.wrangling.referential_integrity_check.check_referential_integrity

pydit.wrangling.referential_integrity_check.check_referential_integrity(a1, a2, verbose=False)[source]

Check what relationship two hashable list have (“one to one”, “many to many” etc.) Optionally, explains in a verbose way that relationship

Parameters:
  • a1 (list or pandas.Series) – First list to check

  • a2 (list or pandas.Series) – Second list to check

  • verbose (bool, optional, default False) – If True, prints a verbose explanation of the relationship.

Returns:

A string describing the relationship.

Return type:

str