Add to_binary
methods for integer types
#21613
Labels
enhancement
New feature or an improvement of an existing feature
Milestone
Description
See #21549 (comment).
Currently, casting most data types to binary goes through
pl.String
, as in:Numpy allows using
.tobytes()
or.view(np.void)
to convert to a binary view:It would very useful in many contexts that require binary formats to convert series to binary, as in:
As an alternative,
Expr.reinterpret
could be enhanced to allow forpl.Binary
, although the input arguments would probably have to be amended.The text was updated successfully, but these errors were encountered: