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.
An IntelliJ IDEA project showing how to use the Kotlin DataFrame Compiler Plugin with Maven.
An IntelliJ IDEA project showing how to use the Kotlin DataFrame Compiler Plugin with Kotlin Toolchain.
A minimal Android project showcasing Kotlin DataFrame integration, including the Kotlin DataFrame Compiler Plugin.
Explore basic DataFrame operations and type-safe column access using data from MovieLens.
Combine Kotlin DataFrame with KotlinDL to explore deep-learning techniques using the Titanic dataset.
Work with YouTube data using the YouTube Data API and Kotlin DataFrame.
Generate data schemas for JSON data from APIs.guru and read JSON using types defined in an OpenAPI specification.
Read Parquet files to import data and ML models exported from Apache Spark.
Convert SQL tables and query results into Kotlin DataFrames.
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.
Use Kotlin DataFrame with Hibernate.
Convert between Kotlin DataFrame and Apache Spark DataFrames, including examples using the Kotlin Spark API.
Use Kotlin DataFrame with Multik.
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.
- 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.
- Financial Analysis of the top-12 German companies notebook – Analyze key financial metrics for several major German companies.
- 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).
- Feature Overviews notebook folder – Overview of new features available in a given version
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.