daft.Expression.list.get

daft.Expression.list.get#

Expression.list.get(idx: int | daft.expressions.expressions.Expression, default: Optional[object] = None) Expression[source]#

Gets the element at an index in each list

Parameters:
  • idx – index or indices to retrieve from each list

  • default – the default value if the specified index is out of bounds

Returns:

an expression with the type of the list values

Return type:

Expression