KProperties API

Edit page Last modified: 14 January 2025

DataFrame can be used as an intermediate structure for data transformation between two data formats. If either source or destination is a Kotlin object, e.g. data class, it is convenient to use its properties for typed data access in DataFrame. This can be done using :: expression that provides property references

By default, DataFrame uses name and returnType of KProperty for typed access to data. When column name differs from property name, use @ColumnName annotation:

The titanic.csv file could be found here.