number_of_interactions

bandicoot.individual.number_of_interactions(records, direction=None)

The number of interactions.

Parameters:
direction : str, optional

Filters the records by their direction: None for all records, 'in' for incoming, and 'out' for outgoing.