Array Operations
array.del_
Remove the element at the specified index from the array.
array.filter
Return a new array containing only the elements of the original array for which the predicate is true.
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.
array.insert
Insert the value at the specified index in the array.
array.join
Concatenate the elements of the array using the provided separator.
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
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.
array.repeat
Return the array repeated n
times.
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.
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.
Was this page helpful?