polars.Series.bin.starts_with#
- Series.bin.starts_with(prefix: IntoExpr) Series [source]#
Check if values start with a binary substring.
- Parameters:
- prefix
Prefix substring.
Examples
>>> s = pl.Series("colors", [b"\x00\x00\x00", b"\xff\xff\x00", b"\x00\x00\xff"]) >>> s.bin.starts_with(b"\x00") shape: (3,) Series: 'colors' [bool] [ true false true ]