plus

operator fun DataColumn<Int>.plus(value: Int): DataColumn<Int>
@JvmName(name = "plusDouble")
operator fun DataColumn<Double>.plus(value: Int): DataColumn<Double>

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.

See also minus, times, div.

Example

// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10

Return

A DataColumn containing the results of adding value to each element of this DataColumn.

Parameters

value

The value to add to each element of this DataColumn.


operator fun ColumnReference<Int>.plus(value: Int): ColumnReference<Int>

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.

See also minus, times, div.

Example

// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10

Return

A ColumnReference containing the results of adding value to each element of this ColumnReference.

Parameters

value

The value to add to each element of this ColumnReference.


@JvmName(name = "plusIntNullable")
operator fun DataColumn<Int?>.plus(value: Int): DataColumn<Int?>

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.

See also minus, times, div.

Example

// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10

Return

A DataColumn containing the results of adding value to each element of this DataColumn.

Parameters

value

The value to add to each element of this DataColumn.


@JvmName(name = "plusInt")
operator fun DataColumn<Int>.plus(value: Double): DataColumn<Double>
operator fun DataColumn<Double>.plus(value: Double): DataColumn<Double>

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.

See also minus, times, div.

Example

// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10.0

Return

A DataColumn containing the results of adding value to each element of this DataColumn.

Parameters

value

The value to add to each element of this DataColumn.


operator fun DataColumn<Long>.plus(value: Long): DataColumn<Long>

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.

See also minus, times, div.

Example

// In a DataFrame of financial transactions,
// add a fixed fee to each transaction amount
df.amount + 10L

Return

A DataColumn containing the results of adding value to each element of this DataColumn.

Parameters

value

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.

See also minus, times, div.

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

value

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.

See also minus, times, div.

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

value

The value to add to each element of this DataColumn.


operator fun Int.plus(column: DataColumn<Int>): DataColumn<Int>
@JvmName(name = "intPlus")
operator fun Int.plus(column: DataColumn<Double>): DataColumn<Double>

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.

See also minus, times, div.

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.distanceFee

Return

A DataColumn containing the results of adding the corresponding element of column to this Int.

Parameters

column

A DataColumn containing the elements to add to this Int.


operator fun Int.plus(column: ColumnReference<Int>): ColumnReference<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.

See also minus, times, div.

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.distanceFee

Return

A ColumnReference containing the results of adding the corresponding element of column to this Int.

Parameters

column

A ColumnReference containing the elements to add to this Int.


@JvmName(name = "plusNullable")
operator fun Int.plus(column: DataColumn<Int?>): DataColumn<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.

See also minus, times, div.

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.distanceFee

Return

A DataColumn containing the results of adding the corresponding element of column to this Int.

Parameters

column

A DataColumn containing the elements to add to this Int.


@JvmName(name = "doublePlus")
operator fun Double.plus(column: DataColumn<Int>): DataColumn<Double>
operator fun Double.plus(column: DataColumn<Double>): DataColumn<Double>

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.

See also minus, times, div.

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.distanceFee

Return

A DataColumn containing the results of adding the corresponding element of column to this Double.

Parameters

column

A DataColumn containing the elements to add to this Double.


operator fun Long.plus(column: DataColumn<Long>): DataColumn<Long>

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.

See also minus, times, div.

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.distanceFee

Return

A DataColumn containing the results of adding the corresponding element of column to this Long.

Parameters

column

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.

See also minus, times, div.

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.distanceFee

Return

A DataColumn containing the results of adding the corresponding element of column to this BigDecimal.

Parameters

column

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.

See also minus, times, div.

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.fileSize

Return

A DataColumn containing the results of adding the corresponding element of column to this BigInteger.

Parameters

column

A DataColumn containing the elements to add to this BigInteger.


operator fun DataColumn<*>.plus(str: String): DataColumn<String>

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

str

The String to append to each element of this AnyCol.


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

str

The String to append to each element of this ColumnReference.