File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ private interface SeeAlsoConvertAsColumn
414
414
* // Select columns with json values and convert it to decoded `String`.
415
415
* df.convert { valueJson }.with { Json.decode(it) }
416
416
* // 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 }
418
418
* ```
419
419
*
420
420
* @param infer [Infer] strategy that defines how the [type][DataColumn.type] of the resulting column should be determined.
You can’t perform that action at this time.
0 commit comments