Skip to content

Commit c52d610

Browse files
convert fix example
1 parent cf14aa5 commit c52d610

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+1
-1
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/convert.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private interface SeeAlsoConvertAsColumn
414414
* // Select columns with json values and convert it to decoded `String`.
415415
* df.convert { valueJson }.with { Json.decode(it) }
416416
* // Convert all `Int` columns to `Duration`, multiplying each value by the corresponding value from the "coeff" `Double` column before conversion
417-
* df.convert { colsOf<Int>() }.with { baseValue -> (baseValue * coeff).toDuration(DurationUnit.MICROSECONDS) }
417+
* df.convert { colsOf<Int>() }.with { baseValue -> (baseValue * coeff).seconds }
418418
* ```
419419
*
420420
* @param infer [Infer] strategy that defines how the [type][DataColumn.type] of the resulting column should be determined.

0 commit comments

Comments
 (0)