times

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

Returns a DataColumn containing the results of multiplying each element of this DataColumn by value.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame with distances in kilometers,
// convert them to meters
val distanceMeters = df.distanceKm * 1000

Return

A DataColumn containing the results of multiplying each element of this DataColumn by value.

Parameters

value

The value to multiply each element of this DataColumn by.


Returns a ColumnReference containing the results of multiplying each element of this ColumnReference by value.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame with distances in kilometers,
// convert them to meters
val distanceMeters = df.distanceKm * 1000

Return

A ColumnReference containing the results of multiplying each element of this ColumnReference by value.

Parameters

value

The value to multiply each element of this ColumnReference by.


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

Returns a DataColumn containing the results of multiplying each element of this DataColumn by value.

null values are not changed by this operation.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame with distances in kilometers,
// convert them to meters
val distanceMeters = df.distanceKm * 1000

Return

A DataColumn containing the results of multiplying each element of this DataColumn by value.

Parameters

value

The value to multiply each element of this DataColumn by.


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

Returns a DataColumn containing the results of multiplying each element of this DataColumn by value.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame with distances in kilometers,
// convert them to meters
val distanceMeters = df.distanceKm * 1000.0

Return

A DataColumn containing the results of multiplying each element of this DataColumn by value.

Parameters

value

The value to multiply each element of this DataColumn by.


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

Returns a DataColumn containing the results of multiplying each element of this DataColumn by value.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame with distances in kilometers,
// convert them to meters
val distanceMeters = df.distanceKm * 1000L

Return

A DataColumn containing the results of multiplying each element of this DataColumn by value.

Parameters

value

The value to multiply each element of this DataColumn by.


Returns a DataColumn containing the results of multiplying each element of this DataColumn by value.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame of product prices, compute the price including a 20% tax
val priceWithTax = df.price * BigDecimal("1.20")

Return

A DataColumn containing the results of multiplying each element of this DataColumn by value.

Parameters

value

The value to multiply each element of this DataColumn by.


Returns a DataColumn containing the results of multiplying each element of this DataColumn by value.

For more information: See times on the documentation website.

See also div, plus, minus.

Example

// In a DataFrame of file sizes in bits, compute the total size of multiple copies of each file
val totalSize = df.fileSize * BigInteger("12345")

Return

A DataColumn containing the results of multiplying each element of this DataColumn by value.

Parameters

value

The value to multiply each element of this DataColumn by.