polars.Series.hash
-
Hash the Series.
The hash value is of type
UInt64.- Parameters:
-
- seed
-
Random seed parameter. Defaults to 0.
- seed_1
-
Random seed parameter. Defaults to
seedif not set. - seed_2
-
Random seed parameter. Defaults to
seedif not set. - seed_3
-
Random seed parameter. Defaults to
seedif not set.
Notes
This implementation of
hashdoes not guarantee stable results across different Polars versions. Its stability is only guaranteed within a single version.Examples
>>> s = pl.Series("a", [1, 2, 3]) >>> s.hash(seed=42) shape: (3,) Series: 'a' [u64] [ 10734580197236529959 3022416320763508302 13756996518000038261 ]
Series.hash(
seed: int = 0,
seed_1: int | None = None,
seed_2: int | None = None,
seed_3: int | None = None,
) → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.hash.html