In Spark, xxhash64 does not use a customizable seed; it may default to 0 or a predefined value. In Python, xxhash.xxh64() requires an explicit seed, which defaults to 0 if not provided.
So, first find the seed used in Spark (consult the documentation or test values). then apply the same in Python.
import xxhash seed = 0 # Replace with the actual seed value used in Spark print(xxhash.xxh64('b', seed=seed).intdigest())