plus
Returns a DataColumn where each element is the result of adding value to the corresponding element of this DataColumn.
That is, value is added to each element of this DataColumn.
For more information: See plus on the documentation website.
Example
// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10Return
A DataColumn containing the results of adding value to each element of this DataColumn.
Parameters
The value to add to each element of this DataColumn.
Returns a ColumnReference where each element is the result of adding value to the corresponding element of this ColumnReference.
That is, value is added to each element of this ColumnReference.
For more information: See plus on the documentation website.
Example
// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10Return
A ColumnReference containing the results of adding value to each element of this ColumnReference.
Parameters
The value to add to each element of this ColumnReference.
Returns a DataColumn where each element is the result of adding value to the corresponding element of this DataColumn.
That is, value is added to each element of this DataColumn.
null values are not changed by this operation.
For more information: See plus on the documentation website.
Example
// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10Return
A DataColumn containing the results of adding value to each element of this DataColumn.
Parameters
The value to add to each element of this DataColumn.
Returns a DataColumn where each element is the result of adding value to the corresponding element of this DataColumn.
That is, value is added to each element of this DataColumn.
For more information: See plus on the documentation website.
Example
// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10.0Return
A DataColumn containing the results of adding value to each element of this DataColumn.
Parameters
The value to add to each element of this DataColumn.
Returns a DataColumn where each element is the result of adding value to the corresponding element of this DataColumn.
That is, value is added to each element of this DataColumn.
For more information: See plus on the documentation website.
Example
// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10LReturn
A DataColumn containing the results of adding value to each element of this DataColumn.
Parameters
The value to add to each element of this DataColumn.
Returns a DataColumn where each element is the result of adding value to the corresponding element of this DataColumn.
That is, value is added to each element of this DataColumn.
For more information: See plus on the documentation website.
Example
// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + BigDecimal("12.03")Return
A DataColumn containing the results of adding value to each element of this DataColumn.
Parameters
The value to add to each element of this DataColumn.
Returns a DataColumn where each element is the result of adding value to the corresponding element of this DataColumn.
That is, value is added to each element of this DataColumn.
For more information: See plus on the documentation website.
Example
// Given a DataFrame of current disks usage in bits,
// compute the total disks usage if the size of a file is added
val totalDisksUsage = df.diskUsage + BigInteger("12345678900")Return
A DataColumn containing the results of adding value to each element of this DataColumn.
Parameters
The value to add to each element of this DataColumn.
Returns a DataColumn where each element is the result of adding the corresponding element of column to this Int.
For more information: See plus on the documentation website.
Example
// In a DataFrame of orders to deliver,
// compute the total delivery cost of each order from a fixed base fee and a variable distance fee.
10 + df.distanceFeeReturn
A DataColumn containing the results of adding the corresponding element of column to this Int.
Parameters
A DataColumn containing the elements to add to this Int.
Returns a ColumnReference where each element is the result of adding the corresponding element of column to this Int.
For more information: See plus on the documentation website.
Example
// In a DataFrame of orders to deliver,
// compute the total delivery cost of each order from a fixed base fee and a variable distance fee.
10 + df.distanceFeeReturn
A ColumnReference containing the results of adding the corresponding element of column to this Int.
Parameters
A ColumnReference containing the elements to add to this Int.
Returns a DataColumn where each element is the result of adding the corresponding element of column to this Int.
null values from the original column remain null values in the resulting DataColumn.
For more information: See plus on the documentation website.
Example
// In a DataFrame of orders to deliver,
// compute the total delivery cost of each order from a fixed base fee and a variable distance fee.
10 + df.distanceFeeReturn
A DataColumn containing the results of adding the corresponding element of column to this Int.
Parameters
A DataColumn containing the elements to add to this Int.
Returns a DataColumn where each element is the result of adding the corresponding element of column to this Double.
For more information: See plus on the documentation website.
Example
// In a DataFrame of orders to deliver,
// compute the total delivery cost of each order from a fixed base fee and a variable distance fee.
10.0 + df.distanceFeeReturn
A DataColumn containing the results of adding the corresponding element of column to this Double.
Parameters
A DataColumn containing the elements to add to this Double.
Returns a DataColumn where each element is the result of adding the corresponding element of column to this Long.
For more information: See plus on the documentation website.
Example
// In a DataFrame of orders to deliver,
// compute the total delivery cost of each order from a fixed base fee and a variable distance fee.
10L + df.distanceFeeReturn
A DataColumn containing the results of adding the corresponding element of column to this Long.
Parameters
A DataColumn containing the elements to add to this Long.
Returns a DataColumn where each element is the result of adding the corresponding element of column to this BigDecimal.
For more information: See plus on the documentation website.
Example
// In a DataFrame of orders to deliver,
// compute the total delivery cost of each order from a fixed base fee and a variable distance fee.
BigDecimal("12.03") + df.distanceFeeReturn
A DataColumn containing the results of adding the corresponding element of column to this BigDecimal.
Parameters
A DataColumn containing the elements to add to this BigDecimal.
Returns a DataColumn where each element is the result of adding the corresponding element of column to this BigInteger.
For more information: See plus 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 each file is added
val diskUsage = BigInteger("12345678900") + df.fileSizeReturn
A DataColumn containing the results of adding the corresponding element of column to this BigInteger.
Parameters
A DataColumn containing the elements to add to this BigInteger.
Returns a DataColumn of String values obtained by converting each element of this AnyCol to a String and concatenating it with str.
null values are converted to the string "null".
For more information: See plus on the documentation website.
See also plus.
Example
// Given a DataFrame of temperature measurements, display temperatures with units
df.select { temperature + " °C" }
// or
df.temperature + " °C"Return
A DataColumn of String values where each element is the result of concatenating the corresponding element of this AnyCol with str.
Parameters
Returns a ColumnReference of String values obtained by converting each element of this ColumnReference to a String and concatenating it with str.
null values are converted to the string "null".
For more information: See plus on the documentation website.
See also plus.
Example
// Given a DataFrame of temperature measurements, display temperatures with units
df.select { temperature + " °C" }
// or
df.temperature + " °C"Return
A ColumnReference of String values where each element is the result of concatenating the corresponding element of this ColumnReference with str.
Parameters
The String to append to each element of this ColumnReference.