convertToDouble

@JvmName(name = "convertToDoubleFromT")
fun <T : Any> DataColumn<T>.convertToDouble(): DataColumn<Double>

Converts values in this column to Double.

For more information: See convert on the documentation website.

Return

A new DataColumn with the Double values.


Converts values in this column to Double. Preserves null values.

For more information: See convert on the documentation website.

Return

A new DataColumn with the Double nullable values.


@JvmName(name = "convertToDoubleFromString")
fun DataColumn<String>.convertToDouble(locale: Locale? = null): DataColumn<Double>
@JvmName(name = "convertToDoubleFromStringNullable")
fun DataColumn<String?>.convertToDouble(locale: Locale? = null): DataColumn<Double?>

Converts values in this String column to Double considering locale (number format).

If any of the parameters is null, the global default (in DataFrame.parser) is used.

For more information: See convert on the documentation website.

Return

A new DataColumn with the Double values.

Parameters

locale

If defined, its number format is used for parsing. The default in DataFrame.parser is the system locale. If the column cannot be parsed, the POSIX format is used.


@JvmName(name = "convertToDoubleFromString")
fun DataColumn<String>.convertToDouble(locale: Locale? = null, nullStrings: Set<String>?, useFastDoubleParser: Boolean?): DataColumn<Double>
@JvmName(name = "convertToDoubleFromStringNullable")
fun DataColumn<String?>.convertToDouble(locale: Locale? = null, nullStrings: Set<String>?, useFastDoubleParser: Boolean?): DataColumn<Double?>

Converts values in this String column to Double considering locale (number format).

If any of the parameters is null, the global default (in DataFrame.parser) is used.

For more information: See convert on the documentation website.

Return

A new DataColumn with the Double values.

Parameters

locale

If defined, its number format is used for parsing. The default in DataFrame.parser is the system locale. If the column cannot be parsed, the POSIX format is used.

nullStrings

a set of strings that should be treated as null values. The default in DataFrame.parser is "null", "NULL", "NA", "N/A".

useFastDoubleParser

whether to use FastDoubleParser. The default in DataFrame.parser is true.