Binary#

The following methods are available under the expr.bin attribute.

Expr.bin.contains(literal)

Check if binaries in Series contain a binary substring.

Expr.bin.decode(encoding, *[, strict])

Decode values using the provided encoding.

Expr.bin.encode(encoding)

Encode a value using the provided encoding.

Expr.bin.ends_with(suffix)

Check if string values end with a binary substring.

Expr.bin.reinterpret(*, dtype[, endianness])

Interpret a buffer as a numerical polars type.

Expr.bin.size([unit])

Get the size of binary values in the given unit.

Expr.bin.starts_with(prefix)

Check if values start with a binary substring.