You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id("org.jetbrains.kotlinx.dataframe") version "0.12.1"
75
48
```
76
49
77
-
### Gradle for Android
78
-
```groovy
79
-
// build.gradle
80
-
81
-
plugins {
82
-
// Optional Gradle plugin for enhanced type safety and schema generation
83
-
// https://kotlin.github.io/dataframe/gradle.html
84
-
id 'org.jetbrains.kotlinx.dataframe' version '0.12.0'
85
-
}
50
+
Check out the [custom setup page](https://kotlin.github.io/dataframe/gettingstartedgradleadvanced.html) if you don't need some of the formats as dependencies,
51
+
for Groovy, and for configurations specific to Android projects.
// execute `assemble` to generate extension properties API
91
+
val df =Repository.readCSV()
92
+
df.fullName[0]
93
+
94
+
df.filter { stargazersCount >50 }
173
95
}
174
96
```
175
97
176
-
### Jupyter Notebook
98
+
##Getting started in Jupyter Notebook / Kotlin Notebook
177
99
178
100
Install [Kotlin kernel](https://github.com/Kotlin/kotlin-jupyter) for [Jupyter](https://jupyter.org/)
179
101
@@ -186,14 +108,26 @@ or specific version:
186
108
%use dataframe(<version>)
187
109
```
188
110
111
+
```kotlin
112
+
val df =DataFrame.read("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv")
113
+
df // the last expression in the cell is displayed
114
+
```
115
+
116
+
When a cell with a variable declaration is executed, in the next cell `DataFrame` provides extension properties based on its data
117
+
```kotlin
118
+
df.filter { stargazers_count >50 }
119
+
```
120
+
189
121
## Data model
190
122
*`DataFrame` is a list of columns with equal sizes and distinct names.
191
123
*`DataColumn` is a named list of values. Can be one of three kinds:
192
124
*`ValueColumn` — contains data
193
125
*`ColumnGroup` — contains columns
194
126
*`FrameColumn` — contains dataframes
195
127
196
-
## Usage example
128
+
## Syntax example
129
+
130
+
Let us show you how data cleaning and aggregation pipelines could look like with DataFrame.
197
131
198
132
**Create:**
199
133
```kotlin
@@ -269,7 +203,9 @@ clean
269
203
}
270
204
```
271
205
272
-
[Try it in **Datalore**](https://datalore.jetbrains.com/view/notebook/vq5j45KWkYiSQnACA2Ymij) and explore [**more examples here**](examples).
206
+
Check it out on [**Datalore**](https://datalore.jetbrains.com/view/notebook/vq5j45KWkYiSQnACA2Ymij) to get a better visual impression of what happens and what the hierarchical DataFrame structure looks like.
207
+
208
+
Explore [**more examples here**](examples).
273
209
274
210
## Kotlin, Kotlin Jupyter, OpenAPI, Arrow and JDK versions
0 commit comments