object functions
- Alphabetic
- By Inheritance
- functions
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def all(colName: String): Column
- def all(colName: String, ignoreNulls: Boolean): Column
- def all(col: Expression): Column
- def all(col: Expression, ignoreNulls: Boolean): Column
- def allHorizontal(cols: Expression*): Column
- Annotations
- @varargs()
- def any(colName: String): Column
- def any(colName: String, ignoreNulls: Boolean): Column
- def any(col: Expression): Column
- def any(col: Expression, ignoreNulls: Boolean): Column
- def anyHorizontal(cols: Expression*): Column
- Annotations
- @varargs()
- def approxNUnique(colName: String): Column
- def approxNUnique(col: Expression): Column
- def arctan2(yColName: String, xColName: String): Column
Compute the element-wise arctangent of
y / xfrom two column names.Compute the element-wise arctangent of
y / xfrom two column names.- yColName
name of the column supplying the numerator
- xColName
name of the column supplying the denominator
- def arctan2(y: Expression, x: Expression): Column
Compute the element-wise arctangent of
y / x, choosing the correct quadrant from the signs of both arguments.Compute the element-wise arctangent of
y / x, choosing the correct quadrant from the signs of both arguments. The result is expressed in radians.- y
expression supplying the numerator (the "y" coordinate)
- x
expression supplying the denominator (the "x" coordinate)
- returns
a com.github.chitralverma.polars.api.expressions.Column of angles in radians
- def arctan2d(yColName: String, xColName: String): Column
Compute the element-wise arctangent of
y / xin degrees from two column names.Compute the element-wise arctangent of
y / xin degrees from two column names.- yColName
name of the column supplying the numerator
- xColName
name of the column supplying the denominator
- def arctan2d(y: Expression, x: Expression): Column
Compute the element-wise arctangent of
y / xin degrees.Compute the element-wise arctangent of
y / xin degrees.- y
expression supplying the numerator (the "y" coordinate)
- x
expression supplying the denominator (the "x" coordinate)
- returns
a com.github.chitralverma.polars.api.expressions.Column of angles in degrees
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asc(col_name: String): Expression
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def col(name: String): Column
- def count(colName: String): Column
- def count(col: Expression): Column
- def cumSum(colName: String): Column
- def cumSum(colName: String, reverse: Boolean): Column
- def cumSum(col: Expression): Column
- def cumSum(col: Expression, reverse: Boolean): Column
- def desc(col_name: String): Expression
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def first(colName: String): Column
- def first(col: Expression): Column
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def last(colName: String): Column
- def last(col: Expression): Column
- def len(colName: String): Column
- def len(col: Expression): Column
- def len(): Column
- def lit(value: Any): Expression
- def max(colName: String): Column
- def max(col: Expression): Column
- def maxHorizontal(cols: Expression*): Column
- Annotations
- @varargs()
- def mean(colName: String): Column
- def mean(col: Expression): Column
- def meanHorizontal(ignoreNulls: Boolean, cols: Expression*): Column
- Annotations
- @varargs()
- def meanHorizontal(cols: Expression*): Column
- Annotations
- @varargs()
- def median(colName: String): Column
- def median(col: Expression): Column
- def min(colName: String): Column
- def min(col: Expression): Column
- def minHorizontal(cols: Expression*): Column
- Annotations
- @varargs()
- def nUnique(colName: String): Column
- def nUnique(col: Expression): Column
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def product(colName: String): Column
- def product(col: Expression): Column
- def quantile(colName: String, q: Double): Column
- def quantile(colName: String, q: Double, method: String): Column
- def quantile(col: Expression, q: Double): Column
- def quantile(col: Expression, q: Double, method: String): Column
- def std(colName: String): Column
- def std(colName: String, ddof: Int): Column
- def std(col: Expression): Column
- def std(col: Expression, ddof: Int): Column
- def sum(colName: String): Column
- def sum(col: Expression): Column
- def sumHorizontal(ignoreNulls: Boolean, cols: Expression*): Column
- Annotations
- @varargs()
- def sumHorizontal(cols: Expression*): Column
- Annotations
- @varargs()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def var(colName: String): Column
- def var(colName: String, ddof: Int): Column
- def var(col: Expression): Column
- def var(col: Expression, ddof: Int): Column
- def variance(colName: String): Column
- def variance(colName: String, ddof: Int): Column
- def variance(col: Expression): Column
- def variance(col: Expression, ddof: Int): Column
- 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 when(condition: Expression, value: Any): When
Start a
when / otherwiseconditional expression.Start a
when / otherwiseconditional expression.Provide a condition and the value to use where that condition is true. The returned com.github.chitralverma.polars.api.expressions.When may be extended with more
when(...)branches and finalised withotherwise(...). When nootherwiseis supplied, unmatched rows evaluate tonull. The value from the first condition that is true is picked; if no condition is true, theotherwisevalue is used.- condition
a boolean expression selecting the rows to which
valueapplies- value
the value for rows where the condition is true; an com.github.chitralverma.polars.api.expressions.Expression is used directly, any other value is treated as a literal
- returns
a com.github.chitralverma.polars.api.expressions.When builder
- Note
All branches are evaluated in parallel and filtered afterwards, so every value expression must be valid on its own, independent of the conditions in the chain.
,The output column name is taken from the first branch; it is not affected by the conditions.