minus
Returns a DataColumn where each element is the result of subtracting value from the corresponding element of this DataColumn.
That is, value is subtracted from each element of the DataColumn.
For more information: See minus on the documentation website.
Example
// In a DataFrame of financial transactions,
// subtract a fixed fee from each transaction amount
df.amount - 10Return
A DataColumn containing the results of subtracting value from each element of this DataColumn.
Returns a ColumnReference where each element is the result of subtracting value from the corresponding element of this ColumnReference.
That is, value is subtracted from each element of the ColumnReference.
For more information: See minus on the documentation website.
Example
// In a DataFrame of financial transactions,
// subtract a fixed fee from each transaction amount
df.amount - 10Return
A ColumnReference containing the results of subtracting value from each element of this ColumnReference.
Returns a DataColumn where each element is the result of subtracting value from the corresponding element of this DataColumn.
That is, value is subtracted from each element of the DataColumn.
null values are not changed by this operation.
For more information: See minus on the documentation website.
Example
// In a DataFrame of financial transactions,
// subtract a fixed fee from each transaction amount
df.amount - 10Return
A DataColumn containing the results of subtracting value from each element of this DataColumn.
Returns a DataColumn where each element is the result of subtracting value from the corresponding element of this DataColumn.
That is, value is subtracted from each element of the DataColumn.
For more information: See minus on the documentation website.
Example
// In a DataFrame of financial transactions,
// subtract a fixed fee from each transaction amount
df.amount - 10.0Return
A DataColumn containing the results of subtracting value from each element of this DataColumn.
Returns a DataColumn where each element is the result of subtracting value from the corresponding element of this DataColumn.
That is, value is subtracted from each element of the DataColumn.
For more information: See minus on the documentation website.
Example
// In a DataFrame of financial transactions,
// subtract a fixed fee from each transaction amount
df.amount - 10LReturn
A DataColumn containing the results of subtracting value from each element of this DataColumn.
Returns a DataColumn where each element is the result of subtracting value from the corresponding element of this DataColumn.
That is, value is subtracted from each element of the DataColumn.
For more information: See minus on the documentation website.
Example
// In a DataFrame of financial transactions,
// subtract a fixed fee from each transaction amount
df.amount - BigDecimal("12.03")Return
A DataColumn containing the results of subtracting value from each element of this DataColumn.
Returns a DataColumn where each element is the result of subtracting value from the corresponding element of this DataColumn.
That is, value is subtracted from each element of the DataColumn.
For more information: See minus on the documentation website.
Example
// Given a DataFrame of current disks usage in bits,
// compute the total disks usage if a file is deleted
val totalDisksUsage = df.diskUsage - BigInteger("12345678900")Return
A DataColumn containing the results of subtracting value from each element of this DataColumn.
Returns a DataColumn where each element is the result of subtracting the corresponding element of column from this Int.
For more information: See minus on the documentation website.
Example
// Given a budget of 1000 euros per employee,
// compute the remaining budget for each employee after expenses
val remainingBudget = 1000 - df.expensesReturn
A DataColumn containing the results of subtracting the corresponding element of column from this Int.
Parameters
A DataColumn containing the elements to subtract from this Int.
Returns a ColumnReference where each element is the result of subtracting the corresponding element of column from this Int.
For more information: See minus on the documentation website.
Example
// Given a budget of 1000 euros per employee,
// compute the remaining budget for each employee after expenses
val remainingBudget = 1000 - df.expensesReturn
A ColumnReference containing the results of subtracting the corresponding element of column from this Int.
Parameters
A ColumnReference containing the elements to subtract from this Int.
Returns a DataColumn where each element is the result of subtracting the corresponding element of column from this Int.
null values from the original column remain null values in the resulting DataColumn.
For more information: See minus on the documentation website.
Example
// Given a budget of 1000 euros per employee,
// compute the remaining budget for each employee after expenses
val remainingBudget = 1000 - df.expensesReturn
A DataColumn containing the results of subtracting the corresponding element of column from this Int.
Parameters
A DataColumn containing the elements to subtract from this Int.
Returns a DataColumn where each element is the result of subtracting the corresponding element of column from this Double.
For more information: See minus on the documentation website.
Example
// Given a budget of 1000 euros per employee,
// compute the remaining budget for each employee after expenses
val remainingBudget = 1000.0 - df.expensesReturn
A DataColumn containing the results of subtracting the corresponding element of column from this Double.
Parameters
A DataColumn containing the elements to subtract from this Double.
Returns a DataColumn where each element is the result of subtracting the corresponding element of column from this Long.
For more information: See minus on the documentation website.
Example
// Given a budget of 1000 euros per employee,
// compute the remaining budget for each employee after expenses
val remainingBudget = 1000L - df.expensesReturn
A DataColumn containing the results of subtracting the corresponding element of column from this Long.
Parameters
A DataColumn containing the elements to subtract from this Long.
Returns a DataColumn where each element is the result of subtracting the corresponding element of column from this BigDecimal.
For more information: See minus on the documentation website.
Example
// Given a budget of 1000 euros per employee,
// compute the remaining budget for each employee after expenses
val remainingBudget = BigDecimal("1000.00") - df.expensesReturn
A DataColumn containing the results of subtracting the corresponding element of column from this BigDecimal.
Parameters
A DataColumn containing the elements to subtract from this BigDecimal.
Returns a DataColumn where each element is the result of subtracting the corresponding element of column from this BigInteger.
For more information: See minus on the documentation website.
Example
// Given the current disk usage in bits,
// and a DataFrame of file sizes in bits, compute the total disk usage if any file is deleted
val diskUsage = BigInteger("12345678900") - df.fileSizeReturn
A DataColumn containing the results of subtracting the corresponding element of column from this BigInteger.
Parameters
A DataColumn containing the elements to subtract from this BigInteger.
Deprecated (with error)
This minus overload will be removed in favor of `remove`. Will be ERROR in 1.0.
Replace with
this.remove(columns)