Open wKollendorf opened 1 year ago
At least converting list<u8>
to f64
is provided by from_le_bytes or from_be_bytes
I'm new to Polars but was wondering about this use case. Given that it's not built-in, would there be a performant way to use map_batches
and something like np.frombuffer
? I'm unsure how to provide additional arguments in map_batches
.
Problem description
Hello,
I am working much with binary data and it would make things easier, when conversion from binary to at least all the common numeric dtypes would be possible. Here is an example:
Recently @ritchie46 already added #9161 binary -> List(u8). Additional parameter for endianness would also be neccessary.
Thanks!