turntable home page
Search...
⌘K
Ask AI
Search...
Navigation
Array Operations
Documentation
Join our Slack
GitHub
Guides
Sources
Models
Metrics
On this page
array.del_
array.filter
array.flatten
array.index
array.insert
array.join
array.len
array.map
array.max
array.min
array.remove
array.repeat
array.sort
array.union
array.unique
array.unnest
array.zip
Array Operations
array.del_
Remove the element at the specified index from the array.
Parameters
index
int | IntegerValue
required
array.filter
Return a new array containing only the elements of the original array for which the predicate is true.
Parameters
predicate
Callable[[Value], bool] | BooleanValue
required
array.flatten
Remove one level of nesting from the array.
array.index
Return the position of the first occurrence of the value in the array.
Parameters
value
Value
required
array.insert
Insert the value at the specified index in the array.
Parameters
index
int | IntegerValue
required
value
Value
required
array.join
Concatenate the elements of the array using the provided separator.
Parameters
sep
str
required
array.len
Return the length of the array.
array.map
Apply the function to each element of the array.
Note: also supports more complex callables like functools.partial and lambdas with closures
Parameters
func
Callable[[Value], Value]
required
array.max
Return the maximum value of the array
array.min
Return the minimum value of the array
array.remove
Return a new array with all occurrences of the value removed. Note that in the python standard library, this method only removes the first occurrence.
Parameters
value
Value
required
array.repeat
Return the array repeated
n
times.
Parameters
n
int | IntegerValue
required
array.sort
Return a new array with the elements sorted.
array.union
Return a new array with the elements of both arrays, with duplicates removed.
Parameters
other
ArrayColumn
required
array.unique
Return a new array with the duplicate elements removed.
array.unnest
Unnest the array into a new table.
Note: Rows with empty arrays are dropped in the output.
array.zip
Return a new array with the elements of the original array and the other arrays zipped together.
The combined map will have f1, f2, f3, etc. as the keys.
Parameters
other
ArrayValue
required
others
ArrayValue
required
Was this page helpful?
Yes
No
Assistant
Responses are generated using AI and may contain mistakes.