unaryMinus
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.expensesReturn
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.expensesReturn
A ColumnReference containing negatives of the corresponding elements of this ColumnReference.
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.expensesReturn
A DataColumn containing negatives of the corresponding elements of this DataColumn.