unaryMinus

@JvmName(name = "unaryMinusDouble")
operator fun DataColumn<Double>.unaryMinus(): DataColumn<Double>
@JvmName(name = "unaryMinusLong")
operator fun DataColumn<Long>.unaryMinus(): DataColumn<Long>
@JvmName(name = "unaryMinusBigDecimal")
operator fun DataColumn<BigDecimal>.unaryMinus(): DataColumn<BigDecimal>
@JvmName(name = "unaryMinusBigInteger")
operator fun DataColumn<BigInteger>.unaryMinus(): DataColumn<BigInteger>

Returns a DataColumn containing negatives of the corresponding elements of this DataColumn.

The sign of each element in this DataColumn is flipped: positive values become negative, and negative values become positive.

For more information: See unaryMinus on the documentation website.

Example

// In a DataFrame of financial transactions,
// represent expenses as negative values
val expenses = -df.expenses

Return

A DataColumn containing negatives of the corresponding elements of this DataColumn.


Returns a ColumnReference containing negatives of the corresponding elements of this ColumnReference.

The sign of each element in this ColumnReference is flipped: positive values become negative, and negative values become positive.

For more information: See unaryMinus on the documentation website.

Example

// In a DataFrame of financial transactions,
// represent expenses as negative values
val expenses = -df.expenses

Return

A ColumnReference containing negatives of the corresponding elements of this ColumnReference.


@JvmName(name = "unaryMinusIntNullable")
operator fun DataColumn<Int?>.unaryMinus(): DataColumn<Int?>

Returns a DataColumn containing negatives of the corresponding elements of this DataColumn.

The sign of each element in this DataColumn is flipped: positive values become negative, and negative values become positive.

null values are not changed by this operation.

For more information: See unaryMinus on the documentation website.

Example

// In a DataFrame of financial transactions,
// represent expenses as negative values
val expenses = -df.expenses

Return

A DataColumn containing negatives of the corresponding elements of this DataColumn.