awkward#
Submodules#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes#
Classes#
|
|
|
|
|
Functions#
|
|
|
|
|
Returns whether all elements are True over one or all levels of nesting. |
|
Returns True if two arrays are equal within the given tolerances and options. |
|
Returns the counterclockwise angle of each complex element in radians or degrees. |
|
Returns whether any elements are True over one or all levels of nesting. |
|
Computes the Cartesian product of arrays, returning integer indexes. |
|
Computes combinations of n items from an array, returning integer indexes. |
|
Returns the index of the maximum value over one or all levels of nesting. |
|
Returns the index of the maximum value, treating NaN values as missing. |
|
Returns the index of the minimum value over one or all levels of nesting. |
|
Returns the index of the minimum value, treating NaN values as missing. |
|
Sorts an array along an axis, returning integer indexes. |
|
Returns True if two arrays have the same shape and elements. |
|
Returns the name of the backend used by the given arrays. |
|
Broadcasts arrays together so they can be combined element-by-element. |
|
Returns a list of arrays whose record types contain the same fields. |
|
Computes the Cartesian product (cross product) of data from a set of arrays. |
|
Returns the categories of a categorical array. |
|
Computes combinations of n items from an array, without replacement. |
|
Returns an array with the given arrays concatenated along an axis. |
|
Returns a deep copy of the array (no memory shared with original). |
|
Computes the correlation of x and y over one or all levels of nesting. |
|
Counts an array's elements over one or all levels of nesting. |
|
Counts an array's nonzero elements over one or all levels of nesting. |
|
Computes the covariance of x and y over one or all levels of nesting. |
|
|
|
Returns an array whose structure is modified to match the given type. |
|
|
|
|
|
|
|
Returns an array with one or all levels of nesting removed. |
|
Converts an Apache Arrow array into an Awkward Array. |
|
Converts an Apache Arrow schema into an Awkward Form. |
|
Reads an Avro file as an Awkward Array. |
|
Reconstitutes an Awkward Array from a Form, length, and memory buffers. |
|
Replaces categorical data with equivalent non-categorical data. |
|
|
|
|
|
Reads a Feather file as an Awkward Array (through pyarrow). |
|
Converts Python data into an Awkward Array. |
|
|
|
Reads JSON from a string, bytes, file, or URL into an Awkward Array. |
|
|
|
Reads data from a local or remote Parquet file or collection of files. |
|
|
|
|
|
Converts one or all regular axes into irregular ones. |
|
Reads a safetensors file as an Awkward Array. |
|
|
|
|
|
Returns an array with the same structure as the input, filled with a given value. |
|
Returns the imaginary components of the given array elements. |
|
Returns True if the array is categorical. |
|
|
|
Returns True if a record, or the outermost record of an array, is a tuple. |
|
Returns True if the array has no structural errors and False otherwise. |
|
Returns a boolean array of element-wise approximate-equality between two arrays. |
|
Computes the linear fit of y against x over one or all levels of nesting. |
|
Returns the within-list index of each element at a given axis depth. |
|
|
|
Materializes any virtual buffers in the array. |
|
Returns the maximum value over one or all levels of nesting. |
|
Returns the maximum value, treating NaN values as missing. |
|
Computes the mean over one or all levels of nesting. |
|
Computes the mean, treating NaN values as missing. |
|
Simplifies options of records into records of options. |
|
Simplifies unions of records into records of options. |
|
|
|
Returns the minimum value over one or all levels of nesting. |
|
Returns the minimum value, treating NaN values as missing. |
|
Computes the `n`th moment over one or all levels of nesting. |
|
|
|
|
|
Returns the number of elements at a given axis depth. |
|
Returns an array with the same structure as the input, filled with ones. |
|
Increases the lengths of lists to a target length by adding None values. |
|
|
|
Multiplies an array's elements, treating NaN values as missing. |
|
Multiplies an array's elements over one or all levels of nesting. |
|
Returns the range of values over one or all levels of nesting. |
|
Returns an array with all levels of nesting removed. |
|
Returns the real components of the given array elements. |
|
Rounds each array element to the given number of decimals. |
|
Returns the lengths of runs of identical values at the deepest level. |
|
|
|
Computes the softmax over the innermost level of nesting. |
|
Returns an array with elements sorted along an axis. |
|
Computes the standard deviation, treating NaN values as missing. |
|
Computes the standard deviation over one or all levels of nesting. |
|
Converts all strings in the array to a new type, leaving the structure untouched. |
|
Sums an array's elements, treating NaN values as missing. |
|
Sums an array's elements over one or all levels of nesting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Applies a transformation function to every node of one or more arrays. |
|
Returns the high-level type of an array as a Type object. |
|
Returns an array with an additional level of nesting. |
|
Splits records or tuples into a tuple or dict of arrays, one per field. |
|
Returns an error message if the array has a structural error, or empty if valid. |
|
Converts all numbers in the array to a new type, leaving the structure untouched. |
|
Computes the variance, treating NaN values as missing. |
|
Computes the variance over one or all levels of nesting. |
|
Selects elements from x or y by a condition, or finds where it is True. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns an array with the same structure as the input, filled with zeros. |
|
Combines arrays into records or tuples, broadcasting them together. |
|
Combines arrays into a collection of records or tuples without broadcasting. |
Package Contents#
- awkward.__all__#