Skip to content

koperagen/df-plugin-demo

Repository files navigation

Overview

This project is a demonstration of Kotlin DataFrame compiler plugin.

Setup

  1. Install IntelliJ IDEA 2024.2
  2. Enable K2 mode in the Settings img.png
  3. Restart the IDE
  4. Press Double Shift and search for Registry
  5. Un-check kotlin.k2.only.bundled.compiler.plugins.enabled img_1.png
  6. Sync the project

At this point, properties provided by the compiler plugin should appear. If they're red, don't hesitate to reach out for help in the issue tracker. img_2.png

Content

Multiple examples are provided:

  1. WowAH.kt starts with defined DataSchema
  2. JetBrainsRepositories.kt infers DataSchema from the data
  3. SupportedAPI.kt provides an overview for things that plugin can do.
  4. DataClasses.kt is an entry point if the data you want to play with can be conveniently created as a list of object instances. Then it can be converted to DataFrame
  5. GenerateSchema.kt and UseSchema.kt is an entry point if you have a file or API with data
  6. JetBrainsRepositoriesAdvanced.kt shows how to create functions
  7. Kandy.kt shows how properties provided by the plugin can be used to build plots with Kandy

Have a look at first and second to get an idea why and how the plugin is useful.

If you want to try in with your data, check out examples 4 and 5. SupportedAPI.kt will help to understand where to expect generated properties.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages