acidbase.intersection_matrix

acidbase.intersection_matrix(*args: Sequence, names: Sequence[str] | None = None) DataFrame

Build a Boolean intersection matrix.

Parameters:
  • *args (sequence) – Collections to compare.

  • names (sequence of str, optional) – Labels for each collection.

Returns:

Boolean matrix indexed by the union of all items, one column per input collection.

Return type:

pandas.DataFrame