class Column extends Expression
- Alphabetic
- By Inheritance
- Column
- Expression
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def %(value: Any): Column
Modulus.
- def &&(value: Any): Column
And.
- def *(value: Any): Column
Divide.
- def +(value: Any): Column
Plus.
- def -(value: Any): Column
Minus.
- def /(value: Any): Column
Divide.
- def <(value: Any): Column
LessThan.
- def <=(value: Any): Column
LessThanEqualTo.
- def <>(value: Any): Column
NotEqualTo.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ===(value: Any): Column
EqualTo.
- def >(value: Any): Column
GreaterThan.
- def >=(value: Any): Column
GreaterThanEqualTo.
- val _ptr: Long
- Attributes
- protected[polars]
- Definition Classes
- Expression
- def abs(): Column
Compute the absolute value of each value.
Compute the absolute value of each value.
- Definition Classes
- Expression
- def alias(name: String): Column
Rename the expression.
- def all(): Column
Return whether all of the values in the boolean expression are true (ignoring nulls).
Return whether all of the values in the boolean expression are true (ignoring nulls).
- Definition Classes
- Expression
- def all(ignoreNulls: Boolean): Column
Return whether all of the values in the boolean expression are true.
Return whether all of the values in the boolean expression are true.
- ignoreNulls
whether to ignore null values
- Definition Classes
- Expression
- def and(other: Any): Column
- def any(): Column
Return whether any of the values in the boolean expression are true (ignoring nulls).
Return whether any of the values in the boolean expression are true (ignoring nulls).
- Definition Classes
- Expression
- def any(ignoreNulls: Boolean): Column
Return whether any of the values in the boolean expression are true.
Return whether any of the values in the boolean expression are true.
- ignoreNulls
whether to ignore null values
- Definition Classes
- Expression
- def approxNUnique(): Column
Return the approximate number of unique values.
Return the approximate number of unique values.
- Definition Classes
- Expression
- def arccos(): Column
Compute the inverse cosine (arccosine) of each value, returning radians.
Compute the inverse cosine (arccosine) of each value, returning radians.
- Definition Classes
- Expression
- def arccosh(): Column
Compute the inverse hyperbolic cosine of each value.
Compute the inverse hyperbolic cosine of each value.
- Definition Classes
- Expression
- def arcsin(): Column
Compute the inverse sine (arcsine) of each value, returning radians.
Compute the inverse sine (arcsine) of each value, returning radians.
- Definition Classes
- Expression
- def arcsinh(): Column
Compute the inverse hyperbolic sine of each value.
Compute the inverse hyperbolic sine of each value.
- Definition Classes
- Expression
- def arctan(): Column
Compute the inverse tangent (arctangent) of each value, returning radians.
Compute the inverse tangent (arctangent) of each value, returning radians.
- Definition Classes
- Expression
- def arctanh(): Column
Compute the inverse hyperbolic tangent of each value.
Compute the inverse hyperbolic tangent of each value.
- Definition Classes
- Expression
- def argMax(): Column
Return the index of the maximum value.
Return the index of the maximum value.
- Definition Classes
- Expression
- def argMin(): Column
Return the index of the minimal value.
Return the index of the minimal value.
- Definition Classes
- Expression
- def argSort(): Column
Return the indices that would sort the values ascending.
Return the indices that would sort the values ascending.
- Definition Classes
- Expression
- def argSort(descending: Boolean, nullsLast: Boolean): Column
Return the indices that would sort the values.
Return the indices that would sort the values.
- descending
whether to sort descending
- nullsLast
whether to put nulls last
- Definition Classes
- Expression
- def as(name: String): Column
Alias for alias.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cast(dataType: DataType): Column
Cast the expression to the specified DataType.
Cast the expression to the specified DataType.
- dataType
target data type
- Definition Classes
- Expression
- def cbrt(): Column
Compute the cube root of each value.
Compute the cube root of each value.
- Definition Classes
- Expression
- def ceil(): Column
Round the values up to the nearest integer (ceiling).
Round the values up to the nearest integer (ceiling).
- Definition Classes
- Expression
- def clip(lower: Expression, upper: Expression): Column
Clip (limit) the values to the inclusive range defined by the given bounds.
Clip (limit) the values to the inclusive range defined by the given bounds.
Values below
lowerbecomelower; values aboveupperbecomeupper. Null values are preserved.- lower
lower bound expression
- upper
upper bound expression
- Definition Classes
- Expression
- def clipMax(upper: Expression): Column
Clip (limit) the values so none exceed the given upper bound.
Clip (limit) the values so none exceed the given upper bound.
Values above
upperbecomeupper; lower values are unchanged. Null values are preserved.- upper
upper bound expression
- Definition Classes
- Expression
- def clipMin(lower: Expression): Column
Clip (limit) the values so none fall below the given lower bound.
Clip (limit) the values so none fall below the given lower bound.
Values below
lowerbecomelower; higher values are unchanged. Null values are preserved.- lower
lower bound expression
- Definition Classes
- Expression
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
- Definition Classes
- Expression → AutoCloseable
- def cos(): Column
Compute the cosine of each value (in radians).
Compute the cosine of each value (in radians).
- Definition Classes
- Expression
- def cosh(): Column
Compute the hyperbolic cosine of each value.
Compute the hyperbolic cosine of each value.
- Definition Classes
- Expression
- def cot(): Column
Compute the cotangent of each value (in radians).
Compute the cotangent of each value (in radians).
- Definition Classes
- Expression
- def count(): Column
Count the non-null values.
Count the non-null values.
- Definition Classes
- Expression
- def cumSum(): Column
Compute the cumulative sum of the values.
Compute the cumulative sum of the values.
- Definition Classes
- Expression
- def cumSum(reverse: Boolean): Column
Compute the cumulative sum of the values.
Compute the cumulative sum of the values.
- reverse
whether to compute the sum in reverse order
- Definition Classes
- Expression
- def degrees(): Column
Convert each value from radians to degrees.
Convert each value from radians to degrees.
- Definition Classes
- Expression
- def diff(): Column
Compute the difference between each value and the immediately preceding one.
Compute the difference between each value and the immediately preceding one.
- Definition Classes
- Expression
- def diff(n: Long): Column
Compute the first discrete difference between consecutive values, ignoring nulls.
Compute the first discrete difference between consecutive values, ignoring nulls.
- n
number of positions to look back when computing the difference
- Definition Classes
- Expression
- def diff(n: Long, nullBehavior: String): Column
Compute the first discrete difference between consecutive values.
Compute the first discrete difference between consecutive values.
- n
number of positions to look back when computing the difference
- nullBehavior
how to handle nulls: "ignore" (default) keeps them, "drop" removes them before differencing
- Definition Classes
- Expression
- def divide(other: Any): Column
- def dropNans(): Column
Drop NaN values from this expression.
Drop NaN values from this expression.
- Definition Classes
- Expression
- def dropNulls(): Column
Drop null values from this expression.
Drop null values from this expression.
- Definition Classes
- Expression
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equalTo(other: Any): Column
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exp(): Column
Compute the exponential (e raised to the value) of each value.
Compute the exponential (e raised to the value) of each value.
- Definition Classes
- Expression
- def finalize(): Unit
- Definition Classes
- Expression → AnyRef
- def first(): Column
Reduce groups to the first value.
Reduce groups to the first value.
- Definition Classes
- Expression
- def floor(): Column
Round the values down to the nearest integer (floor).
Round the values down to the nearest integer (floor).
- Definition Classes
- Expression
- def floorDiv(other: Expression): Column
Floor-divide the values by another expression.
- def gatherEvery(n: Long): Column
Gather every nth element.
Gather every nth element.
- n
gather elements with this step size (must be >= 1)
- Definition Classes
- Expression
- def gatherEvery(n: Long, offset: Long): Column
Gather every nth element, starting at the offset.
Gather every nth element, starting at the offset.
- n
gather elements with this step size (must be >= 1)
- offset
start gathering from this index (default is 0, must be >= 0)
- Definition Classes
- Expression
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def greaterThan(other: Any): Column
- def greaterThanEqualTo(other: Any): Column
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def head(): Column
Get the first 10 elements of this expression.
Get the first 10 elements of this expression.
- Definition Classes
- Expression
- def head(n: Long): Column
Get the first n elements of this expression.
Get the first n elements of this expression.
- n
number of elements to return
- Definition Classes
- Expression
- def isBetween(lower: Any, upper: Any): Column
Check if the expression values are between the lower and upper bounds (inclusive).
Check if the expression values are between the lower and upper bounds (inclusive).
- lower
lower bound
- upper
upper bound
- Definition Classes
- Expression
- def isDuplicated: Column
Mask indicating duplicated values in this expression.
Mask indicating duplicated values in this expression.
- Definition Classes
- Expression
- def isEmpty: Column
Check if the expression is empty.
Check if the expression is empty.
This is a whole-column aggregation returning a single boolean scalar, not a per-element check. Null values are not ignored.
- Definition Classes
- Expression
- def isFinite: Column
Check if the values in this expression are finite.
Check if the values in this expression are finite.
- Definition Classes
- Expression
- def isFirstDistinct: Column
Mask indicating the first occurrence of distinct values in this expression.
Mask indicating the first occurrence of distinct values in this expression.
- Definition Classes
- Expression
- def isIn(values: Array[Any]): Column
Check if the expression values are present in the provided array.
Check if the expression values are present in the provided array.
- values
array of values to match
- Definition Classes
- Expression
- def isInfinite: Column
Check if the values in this expression are infinite.
Check if the values in this expression are infinite.
- Definition Classes
- Expression
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLastDistinct: Column
Mask indicating the last occurrence of distinct values in this expression.
Mask indicating the last occurrence of distinct values in this expression.
- Definition Classes
- Expression
- def isNaN: Column
Is NaN.
- def isNotNaN: Column
Is Not NaN.
- def isNotNull: Column
Is Not Null.
- def isNull: Column
Is Null.
- def isUnique: Column
Mask indicating unique values in this expression.
Mask indicating unique values in this expression.
- Definition Classes
- Expression
- def kurtosis(): Column
Compute the kurtosis of the values with Fisher's definition and bias correction.
Compute the kurtosis of the values with Fisher's definition and bias correction.
- Definition Classes
- Expression
- def kurtosis(fisher: Boolean, bias: Boolean): Column
Compute the kurtosis of the values.
Compute the kurtosis of the values.
- fisher
whether to use Fisher's definition of kurtosis (default is true)
- bias
whether to correct for statistical bias (default is true)
- Definition Classes
- Expression
- def last(): Column
Reduce groups to the last value.
Reduce groups to the last value.
- Definition Classes
- Expression
- def len(): Column
Return the number of elements (including nulls).
Return the number of elements (including nulls).
- Definition Classes
- Expression
- def lessThan(other: Any): Column
- def lessThanEqualTo(other: Any): Column
- def like(pattern: String): Column
Check if the string expression matches the given SQL-like wildcard pattern.
Check if the string expression matches the given SQL-like wildcard pattern.
- pattern
SQL-like pattern (e.g. "ap%")
- Definition Classes
- Expression
- def limit(): Column
Alias for
head.Alias for
head.- Definition Classes
- Expression
- def limit(n: Long): Column
Alias for
head. - def log(): Column
Compute the natural logarithm (base e) of each value.
Compute the natural logarithm (base e) of each value.
- Definition Classes
- Expression
- def log(base: Double): Column
Compute the logarithm of each value to the given base.
Compute the logarithm of each value to the given base.
- base
logarithm base
- Definition Classes
- Expression
- def log10(): Column
Compute the base-10 logarithm of each value.
Compute the base-10 logarithm of each value.
- Definition Classes
- Expression
- def log1p(): Column
Compute the natural logarithm of one plus each value (
log(1 + x)).Compute the natural logarithm of one plus each value (
log(1 + x)).- Definition Classes
- Expression
- def max(): Column
Reduce groups to the maximum value.
Reduce groups to the maximum value.
- Definition Classes
- Expression
- def mean(): Column
Reduce groups to the mean value.
Reduce groups to the mean value.
- Definition Classes
- Expression
- def median(): Column
Reduce groups to the median value.
Reduce groups to the median value.
- Definition Classes
- Expression
- def min(): Column
Reduce groups to the minimal value.
Reduce groups to the minimal value.
- Definition Classes
- Expression
- def minus(other: Any): Column
- def mod(other: Any): Column
- def mode(): Column
Return the most frequent values in this expression.
Return the most frequent values in this expression.
- Definition Classes
- Expression
- def multiply(other: Any): Column
- def nUnique(): Column
Return the number of unique values.
Return the number of unique values.
- Definition Classes
- Expression
- def name: ColumnNameNameSpace
Returns the namespace accessor for expression name manipulation.
Returns the namespace accessor for expression name manipulation.
- Definition Classes
- Expression
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def neg(): Column
Negate the values (unary minus).
Negate the values (unary minus).
- Definition Classes
- Expression
- def notEqualTo(other: Any): Column
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def nullCount(): Column
Return the number of null values.
Return the number of null values.
- Definition Classes
- Expression
- def or(other: Any): Column
- def pctChange(): Column
Compute the fractional change between consecutive values.
Compute the fractional change between consecutive values.
- Definition Classes
- Expression
- def pctChange(n: Long): Column
Compute the fractional change between each value and the one
npositions before it.Compute the fractional change between each value and the one
npositions before it.- n
number of positions to look back
- Definition Classes
- Expression
- def plus(other: Any): Column
- def pow(exponent: Double): Column
Raise the values to the given power.
Raise the values to the given power.
- exponent
exponent to raise each value to
- Definition Classes
- Expression
- def product(): Column
Reduce groups to the product of all the values.
Reduce groups to the product of all the values.
- Definition Classes
- Expression
- def quantile(q: Double): Column
Return the quantile value of the values with "nearest" interpolation.
Return the quantile value of the values with "nearest" interpolation.
- q
quantile value (must be between 0.0 and 1.0)
- Definition Classes
- Expression
- def quantile(q: Double, method: String): Column
Return the quantile value of the values.
Return the quantile value of the values.
- q
quantile value (must be between 0.0 and 1.0)
- method
interpolation method (e.g. "nearest", "linear")
- Definition Classes
- Expression
- def radians(): Column
Convert each value from degrees to radians.
Convert each value from degrees to radians.
- Definition Classes
- Expression
- def reinterpret(): Column
Reinterpret the bits of an integer column as a signed integer of the same width.
Reinterpret the bits of an integer column as a signed integer of the same width.
- Definition Classes
- Expression
- def reinterpret(signed: Boolean): Column
Reinterpret the bits of an integer column as another integer type of the same width.
Reinterpret the bits of an integer column as another integer type of the same width.
- signed
whether to reinterpret as a signed integer;
falsereinterprets as unsigned
- Definition Classes
- Expression
- def reverse(): Column
Reverse the order of elements in this expression.
Reverse the order of elements in this expression.
- Definition Classes
- Expression
- def round(): Column
Round the values to the nearest whole number.
Round the values to the nearest whole number.
- Definition Classes
- Expression
- def round(decimals: Int): Column
Round the values to the given number of decimal places.
Round the values to the given number of decimal places.
Rounding uses the round-half-to-even (banker's rounding) rule.
- decimals
number of decimal places to round to (must be >= 0)
- Definition Classes
- Expression
- def roundSigFigs(digits: Int): Column
Round the values to the given number of significant figures.
Round the values to the given number of significant figures.
- digits
number of significant figures to keep (must be >= 1)
- Definition Classes
- Expression
- def shift(): Column
Shift elements in this expression by 1 position.
Shift elements in this expression by 1 position.
- Definition Classes
- Expression
- def shift(periods: Long): Column
Shift elements in this expression by periods.
Shift elements in this expression by periods.
- periods
number of positions to shift
- Definition Classes
- Expression
- def sign(): Column
Return the sign of each value: -1 for negatives, 1 for positives, 0 for zero.
Return the sign of each value: -1 for negatives, 1 for positives, 0 for zero.
Null values are preserved and NaN maps to NaN.
- Definition Classes
- Expression
- def sin(): Column
Compute the sine of each value (in radians).
Compute the sine of each value (in radians).
- Definition Classes
- Expression
- def sinh(): Column
Compute the hyperbolic sine of each value.
Compute the hyperbolic sine of each value.
- Definition Classes
- Expression
- def skew(): Column
Compute the skewness of the values with bias correction.
Compute the skewness of the values with bias correction.
- Definition Classes
- Expression
- def skew(bias: Boolean): Column
Compute the skewness of the values.
Compute the skewness of the values.
- bias
whether to correct for statistical bias
- Definition Classes
- Expression
- def slice(offset: Long, length: Long): Column
Get a slice of this expression.
Get a slice of this expression.
- offset
start index of the slice (negative indexing is supported)
- length
length of the slice
- Definition Classes
- Expression
- def sqrt(): Column
Compute the square root of each value.
Compute the square root of each value.
- Definition Classes
- Expression
- def std(): Column
Standard deviation of the values with ddof = 1.
Standard deviation of the values with ddof = 1.
- Definition Classes
- Expression
- def std(ddof: Int): Column
Standard deviation of the values.
Standard deviation of the values.
- ddof
Delta Degrees of Freedom (default is 1, must be between 0 and 255)
- Definition Classes
- Expression
- def str: ColumnStrNameSpace
Returns the namespace accessor for string-related expressions.
Returns the namespace accessor for string-related expressions.
- Definition Classes
- Expression
- def sum(): Column
Reduce groups to the sum of all the values.
Reduce groups to the sum of all the values.
- Definition Classes
- Expression
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail(): Column
Get the last 10 elements of this expression.
Get the last 10 elements of this expression.
- Definition Classes
- Expression
- def tail(n: Long): Column
Get the last n elements of this expression.
Get the last n elements of this expression.
- n
number of elements to return
- Definition Classes
- Expression
- def tan(): Column
Compute the tangent of each value (in radians).
Compute the tangent of each value (in radians).
- Definition Classes
- Expression
- def tanh(): Column
Compute the hyperbolic tangent of each value.
Compute the hyperbolic tangent of each value.
- Definition Classes
- Expression
- def toPhysical(): Column
Cast the values to their underlying physical representation.
Cast the values to their underlying physical representation.
This exposes the physical storage type of logical dtypes (for example, the integer codes backing a categorical, or the primitive backing a temporal type).
- Definition Classes
- Expression
- def toString(): String
- Definition Classes
- AnyRef → Any
- def truncate(): Column
Truncate the values toward zero, dropping any fractional part.
Truncate the values toward zero, dropping any fractional part.
- Definition Classes
- Expression
- def truncate(decimals: Int): Column
Truncate the values to the given number of decimal places, rounding toward zero.
Truncate the values to the given number of decimal places, rounding toward zero.
- decimals
number of decimal places to keep (must be >= 0)
- Definition Classes
- Expression
- def unary_!: Column
Not.
- def unary_-: Column
Negate the values (unary minus).
Negate the values (unary minus).
- Definition Classes
- Expression
- def unique(): Column
Get unique values from this expression.
Get unique values from this expression.
- Definition Classes
- Expression
- def unique(maintainOrder: Boolean): Column
Get unique values from this expression.
Get unique values from this expression.
- maintainOrder
whether to maintain the original order of elements
- Definition Classes
- Expression
- def uniqueCounts(): Column
Return the counts of unique values in this expression.
Return the counts of unique values in this expression.
- Definition Classes
- Expression
- def var(): Column
Variance of the values with ddof = 1.
Variance of the values with ddof = 1.
- Definition Classes
- Expression
- def var(ddof: Int): Column
Variance of the values.
Variance of the values.
- ddof
Delta Degrees of Freedom (default is 1, must be between 0 and 255)
- Definition Classes
- Expression
- def variance(): Column
Variance of the values with ddof = 1.
Variance of the values with ddof = 1.
- Definition Classes
- Expression
- def variance(ddof: Int): Column
Variance of the values.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def ||(value: Any): Column
And.