|
1 | 1 | # Kotlin DataFrame Compiler Plugin
|
2 | 2 |
|
3 |
| -Kotlin DataFrame compiler plugin: available in Gradle projects, is coming to Kotlin Notebook and Maven projects soon. |
| 3 | +<web-summary> |
| 4 | +Explore the Kotlin DataFrame Compiler Plugin — |
| 5 | +a powerful tool providing on-the-fly type-safe column-accessors for dataframes. |
| 6 | +</web-summary> |
4 | 7 |
|
5 |
| -Check out this video that shows how expressions update the schema of a dataframe: |
| 8 | +<card-summary> |
| 9 | +Explore the Kotlin DataFrame Compiler Plugin — |
| 10 | +a powerful tool providing on-the-fly type-safe column-accessors for dataframes. |
| 11 | +</card-summary> |
| 12 | + |
| 13 | +<link-summary> |
| 14 | +Explore the Kotlin DataFrame Compiler Plugin — |
| 15 | +a powerful tool providing on-the-fly type-safe column-accessors for dataframes. |
| 16 | +</link-summary> |
| 17 | + |
| 18 | + |
| 19 | +> Now available in Gradle projects, is coming soon to Kotlin Notebook and Maven projects. |
| 20 | +
|
| 21 | +**Kotlin DataFrame Compiler Plugin** is a Kotlin compiler plugin that automatically generates |
| 22 | +**[type-safe extension properties](extensionPropertiesApi.md)** for your dataframes, |
| 23 | +allowing you to access columns and row values in a type-safe way and avoid mistakes in column names. |
6 | 24 |
|
| 25 | +## Why use it? |
| 26 | + |
| 27 | +- Access columns as regular properties: `df.name` instead of `df["name"]`. |
| 28 | +- Get full IDE and compiler support: autocompletion, refactoring, and type checking. |
| 29 | +- Improve code readability and safety when working with DataFrame. |
| 30 | + |
| 31 | +Check out this video that shows how expressions update the schema of a dataframe: |
7 | 32 |
|
8 | 33 | <video src="compiler_plugin.mp4" controls=""/>
|
9 | 34 |
|
@@ -113,3 +138,9 @@ fun main() {
|
113 | 138 | ```
|
114 | 139 |
|
115 | 140 | [Learn more](dataSchema.md) about data schema declarations
|
| 141 | + |
| 142 | +## Examples |
| 143 | + |
| 144 | +* [Kotlin DataFrame in the IntelliJ IDEA project example](https://github.com/Kotlin/dataframe/blob/master/examples/kotlin-dataframe-plugin-example) |
| 145 | + — an IntelliJ IDEA project showcasing simple DataFrame expressions using the Compiler Plugin. |
| 146 | +* [](compilerPluginExamples.md) — few examples of Compiler Plugin usages. |
0 commit comments