daft.Expression.list.chunk

daft.Expression.list.chunk#

Expression.list.chunk(size: int) Expression[source]#

Splits each list into chunks of the given size

Parameters:

size – size of chunks to split the list into. Must be greater than 0

Returns:

an expression with lists of fixed size lists of the type of the list values

Return type:

Expression