daft.Expression.image.encode#
- Expression.image.encode(image_format: str | daft.daft.ImageFormat) Expression [source]#
Encode an image column as the provided image file format, returning a binary column of encoded bytes.
- Parameters:
image_format – The image file format into which the images will be encoded.
- Returns:
A Binary expression representing a binary column of encoded image bytes.
- Return type:
Expression