eq

infix fun <T> DataColumn<T>.eq(value: T): DataColumn<Boolean>

Returns a DataColumn containing the results of comparing each element of this DataColumn with value for equality using the == operator.

For more information: See Compare on the documentation website.

See also neq, gt, lt.

Example

// Given a DataFrame of orders with statuses represented as strings,
// create a column that indicates whether each order is canceled
val isCanceled = df.status eq "canceled"

Return

A DataColumn containing true for elements equal to value, and false otherwise.

Parameters

value

The value to compare each element of this DataColumn with.


infix fun <C> ColumnReference<C>.eq(value: C): ColumnReference<Boolean>

Deprecated (with error)

It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html