Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Examples of Kotlin DataFrame

IntelliJ IDEA project examples

You don't need to clone the repository to build and explore these projects. Download an individual project using the links below or the Download this Example link in its README.

An IntelliJ IDEA project showing how to use the Kotlin DataFrame Compiler Plugin with Gradle.

Download this example

An IntelliJ IDEA project showing how to use the Kotlin DataFrame Compiler Plugin with Maven.

Download this example

An IntelliJ IDEA project showing how to use the Kotlin DataFrame Compiler Plugin with Kotlin Toolchain.

Download this example

A minimal Android project showcasing Kotlin DataFrame integration, including the Kotlin DataFrame Compiler Plugin.

Download this example

Explore basic DataFrame operations and type-safe column access using data from MovieLens.

Download this example

Combine Kotlin DataFrame with KotlinDL to explore deep-learning techniques using the Titanic dataset.

Download this example

Work with YouTube data using the YouTube Data API and Kotlin DataFrame.

Download this example

Generate data schemas for JSON data from APIs.guru and read JSON using types defined in an OpenAPI specification.

Download this example

Read Parquet files to import data and ML models exported from Apache Spark.

Download this example

Convert SQL tables and query results into Kotlin DataFrames.

Download this example

IntelliJ IDEA project examples of manual integrations with other libraries

DataFrame provides modules that wrap other libraries, for example, to support reading Excel files, or JDBC ResultSets, etc. But capacity of working with other libraries is not limited only by that.

Following examples showcase of how to use DataFrame with (momentarily) unsupported data libraries such as Spark and Exposed. They show how to convert to and from Kotlin DataFrame and their respective tables.

Convert between Kotlin DataFrame and Exposed tables.

Download this example

Use Kotlin DataFrame with Hibernate.

Download this example

Convert between Kotlin DataFrame and Apache Spark DataFrames, including examples using the Kotlin Spark API.

Download this example

Use Kotlin DataFrame with Multik.

Download this example

Building and maintaining the examples

The example projects in examples/projects always target the latest stable version of the library. Projects compatible with the latest dev/master version are located in the examples/projects/dev folder.

All examples are tested by the main project in debug mode when gradlew test is run (or manually by gradlew runBuildAllExampleFolders -Pkotlin.dataframe.debug=true). Android example projects require the android.sdk.dir= property to be set.

Versions inside the example projects are overwritten automatically upon gradlew assemble (or manually by gradlew syncAllExampleFolders).

See the convention plugins README for more information.

Notebook examples

  • puzzles notebook – Inspired by 100 pandas puzzles. You will go from the simplest tasks to complex problems where you need to think. This notebook will show you how to solve these tasks with Kotlin DataFrame in a laconic, beautiful style.

  • movies notebook – In this notebook you can see the basic operations of the Kotlin DataFrame on data from movielens. You can take the data from the link.

  • netflix notebook – Explore TV shows and movies from Netflix with the powerful Kotlin DataFrame API and beautiful visualizations from lets-plot.

  • github notebook – This notebook shows what hierarchical dataframes look like and how to work with them.

  • titanic notebook – Let's see how the new library will show itself on the famous Titanic dataset.


  • wine notebook – Wine. Kotlin DataFrame. KotlinDL. What came out of this can be seen in this notebook.

  • youtube notebook – Explore YouTube videos with YouTube REST API and Kotlin DataFrame

  • imdb sql database notebook – In this notebook, we use Kotlin DataFrame and Kandy library to analyze data from IMDB (SQL dump for the MariaDB database with the name "imdb" could be downloaded by this link).

The example notebooks always target the latest stable version of the library. Notebooks compatible with the latest dev/master version are located in the dev folder.

These dev versions are tested by the :dataframe-jupyter module.