@@ -24,6 +24,7 @@ import org.jetbrains.kotlinx.dataframe.columns.ColumnReference
2424import org.jetbrains.kotlinx.dataframe.columns.toColumnSet
2525import org.jetbrains.kotlinx.dataframe.dataTypes.IFRAME
2626import org.jetbrains.kotlinx.dataframe.dataTypes.IMG
27+ import org.jetbrains.kotlinx.dataframe.documentation.ExcludeFromSources
2728import org.jetbrains.kotlinx.dataframe.exceptions.CellConversionException
2829import org.jetbrains.kotlinx.dataframe.exceptions.TypeConversionException
2930import org.jetbrains.kotlinx.dataframe.impl.api.Parsers
@@ -189,27 +190,38 @@ public fun <T : Any> DataColumn<T?>.convertToDouble(): DataColumn<Double?> = con
189190 * If [locale] parameter is defined, it's number format is used for parsing.
190191 * If [locale] parameter is null, the current system locale is used.
191192 * If the column cannot be parsed, then the POSIX format is used.
192- *
193+ */
194+ @ExcludeFromSources
195+ private interface DataColumnStringConvertToDoubleDoc
196+
197+ /* * @include [DataColumnStringConvertToDoubleDoc] */
198+ @JvmName(" convertToDoubleFromString" )
199+ public fun DataColumn<String>.convertToDouble (locale : Locale ? = null): DataColumn <Double > =
200+ convertToDouble(locale = locale, useFastDoubleParser = false )
201+
202+ /* *
203+ * @include [DataColumnStringConvertToDoubleDoc]
193204 * @param useFastDoubleParser whether to use the new _experimental_ FastDoubleParser, defaults to `false` for now.
194205 */
195206@JvmName(" convertToDoubleFromString" )
196207public fun DataColumn<String>.convertToDouble (
197208 locale : Locale ? = null,
198- useFastDoubleParser : Boolean = false ,
209+ useFastDoubleParser : Boolean ,
199210): DataColumn <Double > = this .castToNullable().convertToDouble(locale, useFastDoubleParser).castToNotNullable()
200211
212+ /* * @include [DataColumnStringConvertToDoubleDoc] */
213+ @JvmName(" convertToDoubleFromStringNullable" )
214+ public fun DataColumn<String?>.convertToDouble (locale : Locale ? = null): DataColumn <Double ?> =
215+ convertToDouble(locale = locale, useFastDoubleParser = false )
216+
201217/* *
202- * Parses a String column to Double considering locale (number format).
203- * If [locale] parameter is defined, it's number format is used for parsing.
204- * If [locale] parameter is null, the current system locale is used.
205- * If the column cannot be parsed, then the POSIX format is used.
206- *
218+ * @include [DataColumnStringConvertToDoubleDoc]
207219 * @param useFastDoubleParser whether to use the new _experimental_ FastDoubleParser, defaults to `false` for now.
208220 */
209221@JvmName(" convertToDoubleFromStringNullable" )
210222public fun DataColumn<String?>.convertToDouble (
211223 locale : Locale ? = null,
212- useFastDoubleParser : Boolean = false ,
224+ useFastDoubleParser : Boolean ,
213225): DataColumn <Double ?> {
214226 fun applyParser (parser : (String ) -> Double? ): DataColumn <Double ?> {
215227 var currentRow = 0
0 commit comments