DataFrame 1.0 Help

Setup Kotlin DataFrame in Gradle

Kotlin DataFrame can be added as a usual Gradle dependency to your Kotlin project (for now only Kotlin/JVM is supported).

Create a Kotlin project

  1. In IntelliJ IDEA, select File | New | Project.

  2. In the panel on the left, select New Project.

  3. Name the new project and change its location, if necessary.

  4. From the Language list, select Kotlin.

  5. Select the Gradle build system.

  6. From the JDK list, select the JDK that you want to use in your project. The minimum supported version is JDK 8.

    • If the JDK is installed on your computer, but not defined in the IDE, select Add JDK and specify the path to the JDK home directory.

    • If you don't have the necessary JDK on your computer, select Download JDK.

  7. From the Gradle DSL list, select Kotlin or Groovy.

  8. Select the Add sample code checkbox to create a file with a sample "Hello World!" application.

  9. Click Create.

You have successfully created a project with Gradle.

Add Kotlin DataFrame Gradle dependency

In your Gradle build file (build.gradle or build.gradle.kts), add the Kotlin DataFrame library as a dependency:

dependencies { implementation("org.jetbrains.kotlinx:dataframe:1.0.0-Beta3") }
dependencies { implementation 'org.jetbrains.kotlinx:dataframe:1.0.0-Beta3' }

This will add general Kotlin DataFrame dependency, i.e., core API and implementation as well as all IO modules (excluding experimental ones).
For flexible dependencies configuration see Custom configuration.

Hello World

Let’s create your first DataFrame in the notebook — a simple "Hello, World!" style example:

import org.jetbrains.kotlinx.dataframe.api.dataFrameOf fun main() { val df = dataFrameOf( "name" to listOf("Alice", "Bob"), "age" to listOf(25, 30) ) println(df) }

Kotlin DataFrame Compiler Plugin

Kotlin DataFrame Compiler Plugin enables automatic generation of extension properties and updates data schemas on-the-fly in Gradle projects, making development with Kotlin DataFrame faster, more convenient, and fully type- and name-safe.

To enable the plugin in your Gradle project, add it to the plugins section:

plugins { kotlin("plugin.dataframe") version "2.2.20" }
plugins { id 'org.jetbrains.kotlin.plugin.dataframe' version '2.2.20' }

Due to this issue, incremental compilation must be disabled for now. Add the following line to your gradle.properties file:

kotlin.incremental=false

Next Steps

18 September 2025