Skip to content

Series.Bin (SeriesBinaryNameSpace) ​

Namespace: Polars.FSharp

Instance Methods ​

Contains ​

Check if the binary data contains the given value.

fsharp
member Contains(literal: Expr) : Series

Parameters

NameTypeDescription
literalExpr-

Decode ​

Decode the binary data using the given encoding.

fsharp
member Decode(encoding: TransferEncoding, ?strict: bool) : Series

Parameters

NameTypeDescription
encodingTransferEncoding-
strictbool (optional)-

Encode ​

Encode the binary data using the given encoding.

fsharp
member Encode(encoding: TransferEncoding) : Series

Parameters

NameTypeDescription
encodingTransferEncoding-

EndsWith ​

Check if the binary data ends with the given suffix.

fsharp
member EndsWith(suffix: Expr) : Series

Parameters

NameTypeDescription
suffixExpr-

Get the first n bytes of the binary data.

fsharp
member Head(?n: int) : Series

Parameters

NameTypeDescription
nint (optional)-

Reinterpret ​

Reinterpret the binary data as the given data type.

fsharp
member Reinterpret(dtype: DataTypeExpr, ?endianness: Endianness) : Series
member Reinterpret(dtype: DataType, ?endianness: Endianness) : Series

Parameters

NameTypeDescription
dtypeDataTypeExpr-
endiannessEndianness (optional)-

Size ​

Get the size of the binary data.

fsharp
member Size(?unit: SizeUnit) : Series

Parameters

NameTypeDescription
unitSizeUnit (optional)-

Slice ​

Get a slice of the binary data.

fsharp
member Slice(offset: int, ?length: int) : Series

Parameters

NameTypeDescription
offsetint-
lengthint (optional)-

StartsWith ​

Check if the binary data starts with the given prefix.

fsharp
member StartsWith(prefix: Expr) : Series

Parameters

NameTypeDescription
prefixExpr-

Tail ​

Get the last n bytes of the binary data.

fsharp
member Tail(?n: int) : Series

Parameters

NameTypeDescription
nint (optional)-

Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.