not

Returns a DataColumn containing the inverse Boolean values of this DataColumn.

Each element in this column is transformed using the logical not operation: true becomes false, and false becomes true.

For more information: See not on the documentation website.

Example

// Given a DataFrame of financial transactions,
// find which transactions failed
df.select { !isSuccessful }
// or
!df.isSuccessful

Return

A DataColumn containing the negated Boolean values of this column.


@JvmName(name = "notBooleanNullable")
operator fun DataColumn<Boolean?>.not(): DataColumn<Boolean?>

Returns a DataColumn containing the inverse Boolean values of this DataColumn. Each null value in the original DataColumn is preserved.

Non-null values are transformed using the logical not operation: true becomes false, and false becomes true. null values remain null.

For more information: See not on the documentation website.

Example

// Given a DataFrame of financial transactions,
// find which transactions failed
df.select { !isSuccessful }
// or
!df.isSuccessful

Return

A DataColumn containing the negated Boolean values of this column, while preserving null values.


Returns a ColumnReference containing the inverse Boolean values of this ColumnReference.

Each value in this reference is transformed using the logical not operation: true becomes false, and false becomes true.

For more information: See not on the documentation website.

Example

// Given a DataFrame of financial transactions,
// find which transactions failed
df.select { !isSuccessful }
// or
!df.isSuccessful

Return

A ColumnReference containing the negated Boolean values of this reference.


@JvmName(name = "notBooleanNullable")
operator fun ColumnReference<Boolean?>.not(): ColumnReference<Boolean?>

Returns a ColumnReference containing the inverse Boolean values of this ColumnReference. Each null value in the original ColumnReference is preserved.

Non-null values are transformed using the logical not operation: true becomes false, and false becomes true. null values remain null.

For more information: See not on the documentation website.

Example

// Given a DataFrame of financial transactions,
// find which transactions failed
df.select { !isSuccessful }
// or
!df.isSuccessful

Return

A ColumnReference containing the negated Boolean values of the original reference, while preserving null values.