Column Operations¶
Expression methods¶
Addition + |
|
Boolean AND (__and__) |
|
Equality comparison == |
|
Integer division // |
|
Greater than or equal to comparison >= |
|
Greater than comparison > |
|
Boolean inversion (__invert__) |
|
Less than or equal to comparison <= |
|
Less than comparison < |
|
The remainder of integer division % |
|
Multiplication * |
|
Non-equality comparison != |
|
The unary - (negation) operator (__neg__) |
|
Boolean OR (__or__) |
|
The unary + operator (__pos__) |
|
Computes the power x ** y. |
|
Subtraction - |
|
True division / |
|
Boolean XOR (__xor__) |
|
Computes the absolute value. |
|
|
Computes the inverse cosine. |
Indicates whether every non-null value in a group is True. |
|
Indicates whether at least one value in a group is True. |
|
The default ordering. |
|
|
Computes the inverse sine. |
|
Computes the inverse tangent. |
Cast to a different data type. |
|
|
Computes the cube root. |
Returns the smallest integer greater than or equal to the input. |
|
|
Replaces values outside [lower_bound, upper_bound] with the closer boundary value. |
|
Computes the cosine. |
Counts the number of non-null elements in the column. |
|
The sum of all preceding elements and the current element. |
|
|
Alias for dense_rank. |
Reverses the default ordering. |
|
The day component of the date or datetime. |
|
The number of the current weekday. |
|
The number of days since the beginning of the year. |
|
The hour component of the datetime. |
|
The microsecond component of the datetime. |
|
The microsecond component of the datetime int-divided by 1000 (see polars). |
|
The minute component of the datetime. |
|
The month component of the date or datetime. |
|
The second component of the datetime. |
|
The year component of the date or datetime. |
|
Computes the exponential function. |
|
Replaces every null by the given value. |
|
Returns the largest integer less than or equal to the input. |
|
Whether the value equals one of the given. |
|
Whether the number is infinite. |
|
Indicates whether the value is not null. |
|
Indicates whether the value is null. |
|
Collect the elements of each group in a list. |
|
Computes the natural logarithm. |
|
|
Computes the base-10 logarithm. |
Replaces given values by other expressions. |
|
Computes the maximum value in each group. |
|
Computes the average value in each group. |
|
Computes the minimum value in each group. |
|
Specifies that nulls are placed at the beginning of the ordering. |
|
Specifies that nulls are placed at the end of the ordering. |
|
|
Alias for rank. |
Rounds to a given number of decimals. |
|
Shifts values in the column by an offset. |
|
|
Computes the sine. |
|
Computes the square root. |
Whether the string contains a given pattern or substring. |
|
Whether the string ends with a given suffix. |
|
Concatenates all strings in a group to a single string. |
|
Computes the length of the string. |
|
Converts all alphabet letters to lower case. |
|
Replaces all occurrences of a given substring by a different string. |
|
Returns a substring of the input string. |
|
Whether the string starts with a given prefix. |
|
Removes leading and trailing whitespace. |
|
Converts all alphabet letters to upper case. |
|
Computes the sum of values in each group. |
|
|
Computes the tangent. |
Global functions¶
Returns the first non-null value among the given. |
|
Returns the number of rows of the current table, like |
|
The number of smaller or equal values in the column (not counting duplicates). |
|
Creates a pydiverse.transform expression from a python builtin type. |
|
The maximum of the given columns. |
|
The minimum of the given columns. |
|
|
Generates a column of random floating point number between 0 and 1. |
The number of strictly smaller elements in the column plus one. |
|
Computes the index of a row. |
|