polars.Series.hash

Series.hash(k0: int = 0, k1: int = 1, k2: int = 2, k3: int = 3) polars.internals.series.Series

Hash the Series.

The hash value is of type UInt64

Parameters
k0

seed parameter

k1

seed parameter

k2

seed parameter

k3

seed parameter

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.hash(k0=42)  
shape: (3,)
Series: 'a' [u64]
[
        18040498172617206516
        5352755651785478209
        3939059409923356085
]