fraudtwin.partition_index#

fraudtwin.partition_index(logical_id, shard_count)[source][source]#

Map a logical ID to a stable shard without using Python hash randomization.

Return type:

int

Parameters:
  • logical_id (str)

  • shard_count (int)