polars.Series.bin.size#
- Series.bin.size(unit: SizeUnit = 'b') Series [source]#
Get the size of the binary values in a Series in the given unit.
- Returns:
- Series
Series of data type
UInt32
.
Examples
>>> from os import urandom >>> s = pl.Series("data", [urandom(n) for n in (512, 256, 2560, 1024)]) >>> s.bin.size("kb") shape: (4,) Series: 'data' [f64] [ 0.5 0.25 2.5 1.0 ]