toDuration
Converts values in the columns previously selected with convert to Duration, preserving their original names and positions within the DataFrame. Preserves null values.
Supported source types: String (parsed via Duration.parse), JavaDuration, Long and Int (interpreted as milliseconds).
For more information: See convert on the documentation website.
Examples:
df.convert { duration }.toDuration()
df.convert { colsOf<String?>() }.toDuration()
df.convert { colsOf<Long?>() }.toDuration()Content copied to clipboard