diff --git a/README.md b/README.md index eece048727..3bf6653f46 100644 --- a/README.md +++ b/README.md @@ -37,143 +37,65 @@ You could find the following articles there: ## Setup -### Gradle for JVM -```groovy -// build.gradle - -plugins { - // Optional Gradle plugin for enhanced type safety and schema generation - // https://kotlin.github.io/dataframe/gradle.html - id 'org.jetbrains.kotlinx.dataframe' version '0.12.0' -} - -repositories { - mavenCentral() -} - -dependencies { - implementation 'org.jetbrains.kotlinx:dataframe:0.12.0' -} +```kotlin +implementation("org.jetbrains.kotlinx:dataframe:0.12.1") ``` +Optional Gradle plugin for enhanced type safety and schema generation +https://kotlin.github.io/dataframe/schemasgradle.html ```kotlin -// build.gradle.kts - -plugins { - // Optional Gradle plugin for enhanced type safety and schema generation - // https://kotlin.github.io/dataframe/gradle.html - id("org.jetbrains.kotlinx.dataframe") version "0.12.0" -} - -repositories { - mavenCentral() -} - -dependencies { - implementation("org.jetbrains.kotlinx:dataframe:0.12.0") -} +id("org.jetbrains.kotlinx.dataframe") version "0.12.1" ``` -### Gradle for Android -```groovy -// build.gradle - -plugins { - // Optional Gradle plugin for enhanced type safety and schema generation - // https://kotlin.github.io/dataframe/gradle.html - id 'org.jetbrains.kotlinx.dataframe' version '0.12.0' -} +Check out the [custom setup page](https://kotlin.github.io/dataframe/gettingstartedgradleadvanced.html) if you don't need some of the formats as dependencies, +for Groovy, and for configurations specific to Android projects. -dependencies { - implementation 'org.jetbrains.kotlinx:dataframe:0.12.0' -} +## Getting started -android { - defaultConfig { - minSdk 26 // Android O+ - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - kotlinOptions { - jvmTarget = '1.8' - } - packagingOptions { - resources { - pickFirsts = ["META-INF/AL2.0", - "META-INF/LGPL2.1", - "META-INF/ASL-2.0.txt", - "META-INF/LICENSE.md", - "META-INF/NOTICE.md", - "META-INF/LGPL-3.0.txt"] - excludes = ["META-INF/kotlin-jupyter-libraries/libraries.json", - "META-INF/{INDEX.LIST,DEPENDENCIES}", - "{draftv3,draftv4}/schema", - "arrow-git.properties"] - } - } -} - -// optional, could be required for KSP -tasks.withType(KotlinCompile).configureEach { - kotlinOptions { - jvmTarget = '1.8' - } -} +```kotlin +import org.jetbrains.kotlinx.dataframe.* +import org.jetbrains.kotlinx.dataframe.api.* +import org.jetbrains.kotlinx.dataframe.io.* ``` ```kotlin -// build.gradle.kts +val df = DataFrame.read("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv") +df["full_name"][0] // Indexing https://kotlin.github.io/dataframe/access.html -plugins { - // Optional Gradle plugin for enhanced type safety and schema generation - // https://kotlin.github.io/dataframe/gradle.html - id("org.jetbrains.kotlinx.dataframe") version "0.12.0" -} +df.filter { "stargazers_count"() > 50 }.print() +``` -dependencies { - implementation("org.jetbrains.kotlinx:dataframe:0.12.0") -} +## Getting started with data schema -android { - defaultConfig { - minSdk = 26 // Android O+ - } - compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - } - kotlinOptions { - jvmTarget = "1.8" - } - packaging { - resources { - pickFirsts += listOf( - "META-INF/AL2.0", - "META-INF/LGPL2.1", - "META-INF/ASL-2.0.txt", - "META-INF/LICENSE.md", - "META-INF/NOTICE.md", - "META-INF/LGPL-3.0.txt", - ) - excludes += listOf( - "META-INF/kotlin-jupyter-libraries/libraries.json", - "META-INF/{INDEX.LIST,DEPENDENCIES}", - "{draftv3,draftv4}/schema", - "arrow-git.properties", - ) - } - } -} +Requires Gradle plugin to work +```kotlin +id("org.jetbrains.kotlinx.dataframe") version "0.12.1" +``` + +Plugin generates extension properties API for provided sample of data. Column names and their types become discoverable in completion. -// required for KSP -tasks.withType { - kotlinOptions.jvmTarget = "1.8" +```kotlin +// Make sure to place the file annotation above the package directive +@file:ImportDataSchema( + "Repository", + "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv", +) + +package example + +import org.jetbrains.kotlinx.dataframe.annotations.ImportDataSchema +import org.jetbrains.kotlinx.dataframe.api.* + +fun main() { + // execute `assemble` to generate extension properties API + val df = Repository.readCSV() + df.fullName[0] + + df.filter { stargazersCount > 50 } } ``` -### Jupyter Notebook +## Getting started in Jupyter Notebook / Kotlin Notebook Install [Kotlin kernel](https://github.com/Kotlin/kotlin-jupyter) for [Jupyter](https://jupyter.org/) @@ -186,6 +108,16 @@ or specific version: %use dataframe() ``` +```kotlin +val df = DataFrame.read("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv") +df // the last expression in the cell is displayed +``` + +When a cell with a variable declaration is executed, in the next cell `DataFrame` provides extension properties based on its data +```kotlin +df.filter { stargazers_count > 50 } +``` + ## Data model * `DataFrame` is a list of columns with equal sizes and distinct names. * `DataColumn` is a named list of values. Can be one of three kinds: @@ -193,7 +125,9 @@ or specific version: * `ColumnGroup` — contains columns * `FrameColumn` — contains dataframes -## Usage example +## Syntax example + +Let us show you how data cleaning and aggregation pipelines could look like with DataFrame. **Create:** ```kotlin @@ -269,7 +203,9 @@ clean } ``` -[Try it in **Datalore**](https://datalore.jetbrains.com/view/notebook/vq5j45KWkYiSQnACA2Ymij) and explore [**more examples here**](examples). +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. + +Explore [**more examples here**](examples). ## Kotlin, Kotlin Jupyter, OpenAPI, Arrow and JDK versions diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.byRow.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.byRow.html index 58f64edef2..c7c7a05c0a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.byRow.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.byRow.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.df[0].name - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +200,7 @@
df.df[3, 5, 6].select { name and age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -245,8 +222,7 @@
df.df[3..5] - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -260,9 +236,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectors.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectors.html index 3110a5d95e..f46d22af21 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectors.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectors.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.select { it.name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -247,8 +194,7 @@
df.select { name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -264,8 +210,7 @@
df.select { name.firstName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -281,8 +226,7 @@
df.select { name named "Full Name" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -298,8 +242,7 @@
df.select { name.firstName.map { it.lowercase() } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -315,8 +258,7 @@
df.select { 2021 - age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -332,8 +274,7 @@
df.select { name and age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -349,8 +290,7 @@
df.select { name..age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -366,8 +306,7 @@
df.select { name.all() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -383,8 +322,7 @@
df.select { name.cols { !it.isColumnGroup() }.recursively() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -398,9 +336,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsMisc.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsMisc.html index 77faea4aed..5b0966803d 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsMisc.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsMisc.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.add { "year" from { 0 } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -292,8 +194,7 @@
df.select { cols { it.name().startsWith("year") } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -309,8 +210,7 @@
df.select { startsWith("year") } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -326,8 +226,7 @@
df.select { colsOf<String>() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -343,8 +242,7 @@
df.select { colsOf<String?> { it.countDistinct() > 5 } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -360,8 +258,7 @@
df.select { all() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -377,8 +274,7 @@
df.select { take(2) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -394,8 +290,7 @@
df.select { takeLast(2) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -411,8 +306,7 @@
df.select { drop(2) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -428,8 +322,7 @@
df.select { dropLast(2) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -445,8 +338,7 @@
df.select { first { it.name.startsWith("year") } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -464,8 +356,7 @@ df.select { colGroup("name").last { it.name().endsWith("Name") } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -483,8 +374,7 @@ df.select { Person::name.single { it.name().startsWith("first") } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -500,8 +390,7 @@
df.select { cols { !it.isColumnGroup() }.recursively() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -517,8 +406,7 @@
df.select { all().recursively() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -534,8 +422,7 @@
df.select { cols { it.name().contains(":") }.recursively() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -551,8 +438,7 @@
df.select { colsOf<String>().rec() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -568,8 +454,7 @@
df.select { except { colsOf<String>() } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -585,8 +470,7 @@
df.select { take(2) and col(3) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 6
@@ -600,9 +484,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsModifySet.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsModifySet.html index c2d5bbf5cf..4d3910bd4b 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsModifySet.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsModifySet.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.select { cols { !it.isColumnGroup() }.recursively().take(3) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -232,8 +194,7 @@
df.select { cols { !it.isColumnGroup() }.recursively().takeLast(3) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -249,8 +210,7 @@
df.select { cols { !it.isColumnGroup() }.recursively().drop(3) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -266,8 +226,7 @@
df.select { cols { !it.isColumnGroup() }.recursively().dropLast(3) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -283,8 +242,7 @@
df.select { cols { !it.isColumnGroup() }.rec().filter { it.name().startsWith("year") } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -300,8 +258,7 @@
df.select { cols { !it.isColumnGroup() }.rec().except { age } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -317,8 +274,7 @@
df.select { (colsOf<Int>() and age).distinct() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -332,9 +288,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsUsages.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsUsages.html index 6ba0bb419a..d0e4b0a9bd 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsUsages.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsUsages.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.select { age and name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -238,8 +194,7 @@
df.fillNaNs { colsOf<Double>().recursively() }.withZero() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -261,8 +216,7 @@
df.remove { cols { it.hasNulls() } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -278,8 +232,7 @@
df.into { "nameless" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -295,8 +248,7 @@
df.update { city }.notNull { it.lowercase() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -318,8 +270,7 @@
df.gather { colsOf<Number>() }.into("key", "value") - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -341,8 +292,7 @@
df.after { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -356,9 +306,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnsSelectorByIndices.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnsSelectorByIndices.html index 5f7eca16ce..dd3e450338 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnsSelectorByIndices.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnsSelectorByIndices.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.select { col(2) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,8 +194,7 @@
df.select { cols(0, 1, 3) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -229,8 +210,7 @@
df.select { cols(1..4) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -244,9 +224,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinct.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinct.html index 3dc94577b0..3162d04223 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinct.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinct.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctBy.html index 3d72830704..21b0e259f2 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctBy.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.distinctBy { age and name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -209,8 +194,7 @@
df.groupBy { age and name }.mapToRows { group.first() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -230,9 +214,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctColumns.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctColumns.html index 03ca8c081e..89a4f84497 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctColumns.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctColumns.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.distinct { age and name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -209,8 +194,7 @@
df.select { age and name }.distinct() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -230,9 +214,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.drop.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.drop.html index f5f80cda5c..4e10db92ac 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.drop.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.drop.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropLast.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropLast.html index b554a5cef8..fabdb074bf 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropLast.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropLast.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.dropLast() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.dropLast(5) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNA.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNA.html index 8726f1bcd3..044ad0ad6c 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNA.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNA.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.dropNA() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +194,7 @@
df.dropNA(whereAllNA = true) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -239,8 +210,7 @@
df.dropNA { weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -256,8 +226,7 @@
df.dropNA { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -273,8 +242,7 @@
df.dropNA(whereAllNA = true) { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -288,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNaNs.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNaNs.html index 988d0fc7b6..351bff456a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNaNs.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNaNs.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.dropNaNs() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +194,7 @@
df.dropNaNs(whereAllNaN = true) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -239,8 +210,7 @@
df.dropNaNs { weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -256,8 +226,7 @@
df.dropNaNs { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -273,8 +242,7 @@
df.dropNaNs(whereAllNaN = true) { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -288,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNulls.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNulls.html index 251cbddc72..1de0250fca 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNulls.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropNulls.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.dropNulls() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +194,7 @@
df.dropNulls(whereAllNull = true) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -239,8 +210,7 @@
df.dropNulls { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -256,8 +226,7 @@
df.dropNulls { city and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -273,8 +242,7 @@
df.dropNulls(whereAllNull = true) { city and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -288,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhere.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhere.html index 1dc271db3c..4ddc2f59a2 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhere.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhere.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhile.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhile.html index 3dc94577b0..3162d04223 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhile.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.dropWhile.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filter.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filter.html index 719343c255..ef7d819e28 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filter.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filter.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filterBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filterBy.html index f845caa245..61461f03ca 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filterBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.filterBy.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getColumnsByName.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getColumnsByName.html index 9a88c21b90..60e15f1ea3 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getColumnsByName.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getColumnsByName.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByCondition.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByCondition.html index 8b4b63badc..ff8047c99e 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByCondition.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByCondition.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.single { age == 45 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +194,7 @@
df.first { weight != null } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -239,8 +210,7 @@
df.minBy { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -256,8 +226,7 @@
df.maxBy { name.firstName.length } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -273,8 +242,7 @@
df.maxByOrNull { weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -288,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByIndex.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByIndex.html index 6527e1520a..3d15c55f60 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByIndex.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getRowByIndex.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByIndices.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByIndices.html index 9c053ea196..7012c27e0d 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByIndices.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByIndices.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByRanges.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByRanges.html index 2e9c0e804c..5de6a1560e 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByRanges.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.getSeveralRowsByRanges.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.df[1..2] - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.df[0..2, 4..5] - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.select.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.select.html index 9a88c21b90..60e15f1ea3 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.select.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.select.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.take.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.take.html index dc50d0d05e..662df2eeba 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.take.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.take.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeLast.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeLast.html index 240705750b..415d5b084f 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeLast.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeLast.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeWhile.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeWhile.html index 10fc5491d1..b78c50dae3 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeWhile.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.takeWhile.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.xs.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.xs.html index b635d07699..3a1c29758e 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.xs.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.xs.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.xs("Charlie", "Chaplin") - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.xs("Moscow", true) { city and isHappy } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.columnsFor.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.columnsFor.html index be4e76f6a1..1d873cbb23 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.columnsFor.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.columnsFor.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.minFor { colsOf<Int>() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +194,7 @@
df.maxFor { name.firstName and name.lastName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -239,8 +210,7 @@
df.sumFor { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -256,8 +226,7 @@
df.meanFor { cols(1, 3).asNumbers() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -273,8 +242,7 @@
df.medianFor { name.cols().asComparable() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -288,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.countAggregation.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.countAggregation.html index 0d66fb78ca..07017d2f06 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.countAggregation.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.countAggregation.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.count() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -226,8 +200,7 @@
df.pivot { city }.count { age > 18 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -249,8 +222,7 @@
df.pivot { name.firstName }.groupBy { name.lastName }.count() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -276,9 +248,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describe.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describe.html index 071615cd2a..234f4a0afb 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describe.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describe.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describeColumns.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describeColumns.html index 2c7129e38b..e237a2bba9 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describeColumns.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.describeColumns.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupBy.html index 334cab33e9..2ed76be7e4 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupBy.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,8 +194,7 @@
df.groupBy { city and name.lastName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -229,8 +210,7 @@
df.groupBy { age / 10 named "ageDecade" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -244,9 +224,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregateWithoutInto.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregateWithoutInto.html index 24c0aee395..9c16b9413a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregateWithoutInto.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregateWithoutInto.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregations.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregations.html index 48563bbf7f..098c595e65 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregations.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByAggregations.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByDirectAggregations.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByDirectAggregations.html index 797cf63a4e..384b07067a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByDirectAggregations.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByDirectAggregations.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.max() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -266,8 +200,7 @@
df.groupBy { city }.mean() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -289,8 +222,7 @@
df.groupBy { city }.max { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -312,8 +244,7 @@
df.groupBy { city }.sum("total weight") { weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -335,8 +266,7 @@
df.groupBy { city }.count() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -358,8 +288,7 @@
df.groupBy { city }.max { name.firstName.length() and name.lastName.length() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -381,8 +310,7 @@
df.groupBy { city }.medianFor { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -404,8 +332,7 @@
df.groupBy { city }.minFor { (age into "min age") and (weight into "min weight") } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -427,8 +354,7 @@
df.groupBy { city }.meanOf("mean ratio") { weight?.div(age) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -448,9 +374,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByExpr.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByExpr.html index bbea5f85c6..84d5a80f7e 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByExpr.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByExpr.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTop.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTop.html index 220c72caaf..7aad00adff 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTop.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTop.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTopFalse.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTopFalse.html index 9bfac4b934..9a7e85e6d7 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTopFalse.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByMoveToTopFalse.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByToFrame.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByToFrame.html index 1c2d25a1d6..cd8b1d8778 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByToFrame.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByToFrame.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByWithoutAggregation.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByWithoutAggregation.html index 17a9cbff06..55e16a983a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByWithoutAggregation.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.groupByWithoutAggregation.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.values() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -224,8 +200,7 @@
df.groupBy { city }.values { name and age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -247,8 +222,7 @@
df.groupBy { city }.values { weight into "weights" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -268,9 +242,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.head.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.head.html index 1f443daae6..5ec99cd8a8 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.head.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.head.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.meanAggregationsSkipNA.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.meanAggregationsSkipNA.html index 46ca8c7d3f..16bbfa99b2 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.meanAggregationsSkipNA.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.meanAggregationsSkipNA.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot.html index 09603b8158..526f334290 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot2.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot2.html index e530b55d83..353557a740 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot2.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivot2.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivot { city and name.firstName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.pivot { city then name.firstName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate.html index 41613cf0ea..517b8ff593 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate1.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate1.html index f98d42659d..a4f3e43f94 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate1.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAggregate1.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAsDataRowOrFrame.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAsDataRowOrFrame.html index adc46e4969..167f589540 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAsDataRowOrFrame.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotAsDataRowOrFrame.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivot { city }.frames() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -219,8 +200,7 @@
df.pivot { city }.groupBy { name }.frames() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -246,9 +226,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCommonAggregations.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCommonAggregations.html index c683259c64..eb07c364e8 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCommonAggregations.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCommonAggregations.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivot { city }.maxFor { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -219,8 +200,7 @@
df.groupBy { name }.pivot { city }.median { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -246,9 +226,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCounts.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCounts.html index 3e4e3697c1..d245a97ab9 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCounts.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotCounts.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivotCounts { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -234,8 +194,7 @@
df.pivot { city }.groupByOther().count() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -263,8 +222,7 @@
df.groupBy { name }.pivotCounts { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -286,8 +244,7 @@
df.groupBy { name }.pivot { city }.count() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -317,8 +274,7 @@ df.groupBy { name }.aggregate { pivotCounts { city } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -338,9 +294,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault.html index fb457714d9..a614b52ada 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivot { city }.groupBy { name }.aggregate { min { age } default 0 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -229,8 +206,7 @@
df.pivot { city }.groupBy { name }.default(0).min() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -262,9 +238,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault1.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault1.html index 1ab62bc669..6848b08185 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault1.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotDefault1.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupBy.html index 777a4156af..af0727a511 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupBy.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivot { city }.groupBy { name } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -217,8 +200,7 @@
df.groupBy { name }.pivot { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -238,9 +220,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupByOther.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupByOther.html index 3e5ed347c8..8e7d91afa8 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupByOther.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotGroupByOther.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInAggregate.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInAggregate.html index 3ef9149340..9c5aaeab68 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInAggregate.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInAggregate.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInward.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInward.html index 112976e85c..b96b193286 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInward.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotInward.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotMatches.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotMatches.html index f9a7e48271..0304829612 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotMatches.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.pivotMatches.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.pivotMatches { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -234,8 +194,7 @@
df.pivot { city }.groupByOther().matches() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -263,8 +222,7 @@
df.groupBy { name }.pivotMatches { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -286,8 +244,7 @@
df.groupBy { name }.pivot { city }.matches() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -317,8 +274,7 @@ df.groupBy { name }.aggregate { pivotMatches { city } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -338,9 +294,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.schemaGroupBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.schemaGroupBy.html index 54aa35307c..642dfea4f1 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.schemaGroupBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.schemaGroupBy.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupByMany.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupByMany.html index b0f8fbc084..606ea83233 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupByMany.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupByMany.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.meanFor { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -217,8 +200,7 @@
df.groupBy { city }.mean() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -238,9 +220,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingle.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingle.html index 17c58d2db6..706cfafa12 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingle.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingle.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.mean { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -217,8 +200,7 @@
df.groupBy { city }.meanOf { age / 2 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -238,9 +220,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingleNamed.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingleNamed.html index c7ad54e180..23a824b9b1 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingleNamed.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticGroupBySingleNamed.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.mean("mean age") { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -217,8 +200,7 @@
df.groupBy { city }.meanOf("custom") { age / 2 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -238,9 +220,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotMany.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotMany.html index 9e3859d4da..bbd905b1b3 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotMany.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotMany.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.pivot { name.lastName }.meanFor { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -227,8 +206,7 @@
df.groupBy { city }.pivot { name.lastName }.mean() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -254,9 +232,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotManySeparate.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotManySeparate.html index f9a325e42e..fe66d89198 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotManySeparate.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotManySeparate.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.pivot { name.lastName }.meanFor(separate = true) { age and weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -227,8 +206,7 @@
df.groupBy { city }.pivot { name.lastName }.mean(separate = true) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -254,9 +232,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotSingle.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotSingle.html index b4deedac67..b1fcd8dfc2 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotSingle.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.statisticPivotSingle.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.groupBy { city }.pivot { name.lastName }.mean { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -227,8 +206,7 @@
df.groupBy { city }.pivot { name.lastName }.meanOf { age / 2.0 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -254,9 +232,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.valueCounts.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.valueCounts.html index 45e9dfc18b..32aec7de19 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.valueCounts.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Analyze.valueCounts.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.valueCounts() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.valueCounts { name and city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.columnAccessorMap.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.columnAccessorMap.html index 1ac3ef5c8e..066dd35d4a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.columnAccessorMap.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.columnAccessorMap.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromIterable.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromIterable.html index f0f27e06d8..98f2bf62ca 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromIterable.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromIterable.html @@ -1,7 +1,7 @@ - - - - - - - - + + +

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromMap.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromMap.html index f0f27e06d8..98f2bf62ca 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromMap.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.createDataFrameFromMap.html @@ -1,7 +1,7 @@ - - - - - - - - + + +

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.duplicatedColumns.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.duplicatedColumns.html index 958449a85d..5b947bef14 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.duplicatedColumns.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Create.duplicatedColumns.html @@ -1,7 +1,7 @@ - - - - - - - - + + +

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.conditions.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.conditions.html index ed1fa444b0..2114c8d538 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.conditions.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.conditions.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.filter { index() % 5 == 0 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -216,8 +194,7 @@
df.drop { diffOrNull { age } == 0 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -233,8 +210,7 @@
df.update { weight }.where { index() > 4 && city != "Paris" }.with { 50 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -260,9 +236,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.expressions.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.expressions.html index e7d9e9aade..7401fd1de6 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.expressions.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.DataRowApi.expressions.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.add("fullName") { name.firstName + " " + name.lastName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -218,8 +194,7 @@
df.update { weight }.at(1, 3, 4).with { prev()?.weight } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -247,8 +222,7 @@
df.pivot { city }.with { name.lastName.uppercase() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -268,9 +242,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.join.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.join.html index fcfbaa76d1..fe7a340273 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.join.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.join.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinDefault.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinDefault.html index fcfbaa76d1..fe7a340273 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinDefault.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinDefault.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinSpecial.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinSpecial.html index 01b517608b..50204aa219 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinSpecial.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinSpecial.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.innerJoin(other) { name and city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,8 +194,7 @@
df.leftJoin(other) { name and city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -239,8 +210,7 @@
df.rightJoin(other) { name and city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -256,8 +226,7 @@
df.fullJoin(other) { name and city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -273,8 +242,7 @@
df.excludeJoin(other) { name and city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -288,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinWithMatch.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinWithMatch.html index 72a8839ecb..6d0abac0ed 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinWithMatch.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Join.joinWithMatch.html @@ -1,7 +1,7 @@ - - - - - - - + + +
other.into("fullName").cast<Right>() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 3
@@ -225,8 +200,7 @@
df.join(other) { name match right.fullName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -242,8 +216,7 @@
joined.df - -
+
Input DataFrame: rowsCount = 7, columnsCount = 7
@@ -259,8 +232,7 @@
joined.df - -
+
Input DataFrame: rowsCount = 7, columnsCount = 7
@@ -274,9 +246,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerColumns.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerColumns.html index 5181d4c930..bcaa3ba1df 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerColumns.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerColumns.html @@ -1,7 +1,7 @@ - - - - - - + + +
- -
+
df1
@@ -206,10 +200,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerValues.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerValues.html index b20dad4d4b..cfef8ede48 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerValues.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareInnerValues.html @@ -1,7 +1,7 @@ - - - - - - + + +
- -
+
df1
@@ -206,10 +200,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareLeft.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareLeft.html index 75b996701b..170856dbcb 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareLeft.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareLeft.html @@ -1,7 +1,7 @@ - - - - - - + + +
- -
+
df1
@@ -213,8 +202,7 @@


- -
+
@@ -227,10 +215,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareRight.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareRight.html index 52318c43c3..a757294f79 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareRight.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.compareRight.html @@ -1,7 +1,7 @@ - - - - - - + + +
- -
+
df1
@@ -213,8 +202,7 @@


- -
+
@@ -227,10 +215,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.crossProduct.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.crossProduct.html index 2d47726fa3..e255945e4f 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.crossProduct.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.crossProduct.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.excludeJoinWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.excludeJoinWith.html index b4e550fbcb..6433d83422 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.excludeJoinWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.excludeJoinWith.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.filterJoinWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.filterJoinWith.html index 62737eb924..43465ddd4b 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.filterJoinWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.filterJoinWith.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.fullJoinWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.fullJoinWith.html index 8b23afea87..6706d80bd4 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.fullJoinWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.fullJoinWith.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.joinWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.joinWith.html index e2d42c0a87..15b8b08316 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.joinWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.joinWith.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.leftJoinWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.leftJoinWith.html index 3786450d0e..8670121538 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.leftJoinWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.leftJoinWith.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.rightJoinWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.rightJoinWith.html index 9381063016..1ee91b3c36 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.rightJoinWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.JoinWith.rightJoinWith.html @@ -1,7 +1,7 @@ - - - - - - + + +
campaigns
@@ -203,10 +199,9 @@
- - - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.add.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.add.html index 976fa95c5e..4ac444a30e 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.add.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.add.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addDataFrames.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addDataFrames.html index df4a1345df..2c38d69741 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addDataFrames.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addDataFrames.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.select { name named "name2" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,8 +194,7 @@
df.select { age named "age2" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -229,8 +210,7 @@
df.add(df1, df2) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -244,9 +224,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addExisting.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addExisting.html index 261d28c8f1..6cf51d994b 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addExisting.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addExisting.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.add(score) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.df + score - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addMany.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addMany.html index 1b58d35a7e..67c292a522 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addMany.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addMany.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addRecurrent.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addRecurrent.html index fb6adbda4e..050ddf9837 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addRecurrent.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.addRecurrent.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.concatGroupBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.concatGroupBy.html index e8f96529dd..f5b2e8f3e6 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.concatGroupBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.concatGroupBy.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convert.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convert.html index 8b73a6d884..3090c37219 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convert.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convert.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.convert { age }.with { it.toDouble() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -213,8 +198,7 @@
df.convert { colsOf<String>().recursively() }.with { it.toCharArray().toList() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -232,9 +216,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertTo.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertTo.html index ef4ff4f4ac..7524eb65ec 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertTo.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertTo.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.convert { age }.to<Double>() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -225,8 +198,7 @@
df.convert { colsOf<Number>() }.to<String>() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -246,8 +218,7 @@
df.convert { name.firstName and name.lastName }.to { it.length() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -267,8 +238,7 @@
df.convert { weight }.toFloat() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -286,9 +256,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertToEnum.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertToEnum.html index ee105d39b7..6fc9b604d9 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertToEnum.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.convertToEnum.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 2, columnsCount = 1
@@ -201,9 +192,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNA.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNA.html index d688412f21..825e805b51 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNA.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNA.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNaNs.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNaNs.html index 30a904e66f..dfc6d152ec 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNaNs.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNaNs.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNulls.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNulls.html index 407a82da2c..ec8c9a6545 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNulls.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.fillNulls.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.fillNulls { colsOf<Int?>() }.with { -1 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -219,8 +200,7 @@
df.update { colsOf<Int?>() }.where { it == null }.with { -1 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -246,9 +226,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flatten.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flatten.html index c243cca37e..03ea9fb4f4 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flatten.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flatten.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flattenAll.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flattenAll.html index c243cca37e..03ea9fb4f4 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flattenAll.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.flattenAll.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gather.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gather.html index fa08475487..87451ca36d 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gather.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gather.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.dropNulls { city }.pivotCounts(inward = false) { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -217,8 +200,7 @@
pivoted.gather { "London".."Tokyo" }.into("city", "population") - -
+
Input DataFrame: rowsCount = 6, columnsCount = 9
@@ -238,9 +220,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gatherNames.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gatherNames.html index 7b47b82743..4efeb4818d 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gatherNames.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.gatherNames.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.dropNulls { city }.pivotCounts(inward = false) { city } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -221,8 +200,7 @@
pivoted.gather { "London".."Tokyo" }.cast<Int>().where { it > 0 }.keysInto("city") - -
+
Input DataFrame: rowsCount = 6, columnsCount = 9
@@ -254,9 +232,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.group.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.group.html index b70fc4536b..3d68465be1 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.group.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.group.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.into("info") - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -207,8 +194,7 @@
df.into { it.type().toString() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -222,9 +208,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.implode.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.implode.html index 991bc542b9..8e773e1a4e 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.implode.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.implode.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insert.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insert.html index 5d787817b9..c0ce3412fc 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insert.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insert.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insertColumn.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insertColumn.html index b18e9b6080..b5625c2121 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insertColumn.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.insertColumn.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mapMany.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mapMany.html index f8c6dfeef3..ac8841505c 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mapMany.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mapMany.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.merge.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.merge.html index 8c17c35cde..4b2dbc51e1 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.merge.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.merge.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDefault.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDefault.html index f83605e077..4565ddb508 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDefault.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDefault.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDifferentWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDifferentWith.html index 458af81fd9..7e82ca332b 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDifferentWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeDifferentWith.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeIntoList.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeIntoList.html index a6d42a35a5..18cd675de1 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeIntoList.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeIntoList.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeSameWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeSameWith.html index 7f0af60eba..5266ad1b42 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeSameWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.mergeSameWith.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.move.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.move.html index 005a933f29..684c1f801a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.move.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.move.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.toLeft() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -242,8 +194,7 @@
df.to(1) - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -259,8 +210,7 @@
df.into { pathOf("info", it.name()) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -276,8 +226,7 @@
df.into { "info"[it.name()] } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -293,8 +242,7 @@
df.under("info") - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -310,8 +258,7 @@
df.into { pathOf("fullName", it.name().dropLast(4)) } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -327,8 +274,7 @@
dataFrameOf("a|b|c", "a|d|e")(0, 0).into { it.name().split("|").toPath() } - -
+
Input DataFrame: rowsCount = 1, columnsCount = 2
@@ -344,8 +290,7 @@
df.toTop() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -361,8 +306,7 @@
df.toTop { it.parentName + it.name() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -376,9 +320,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseAll.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseAll.html index 3dc94577b0..3162d04223 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseAll.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseAll.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseSome.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseSome.html index 3dc94577b0..3162d04223 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseSome.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseSome.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseWithOptions.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseWithOptions.html index 3dc94577b0..3162d04223 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseWithOptions.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.parseWithOptions.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.remove.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.remove.html index c25dfea7a6..ff9fef3de4 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.remove.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.remove.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorder.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorder.html index 575d08001a..49366b0844 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorder.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorder.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorderInGroup.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorderInGroup.html index bc227533bd..a50a5b90cf 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorderInGroup.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reorderInGroup.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.replace.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.replace.html index 401cc0224d..f888064ebe 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.replace.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.replace.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.with { name.firstName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,8 +194,7 @@
df.with { it.lowercase() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -229,8 +210,7 @@
df.with { 2021 - age named "year" } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -244,9 +224,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reverse.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reverse.html index 57c306a8ba..c7fc5c2312 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reverse.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.reverse.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.shuffle.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.shuffle.html index 16a8372f56..c31286a05d 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.shuffle.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.shuffle.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortBy.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortBy.html index 7c3000a30e..b016b06dcd 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortBy.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortBy.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.sortBy { age } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,8 +194,7 @@
df.sortBy { age and name.firstName.desc() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -229,8 +210,7 @@
df.sortBy { weight.nullsLast() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -244,9 +224,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortByDesc.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortByDesc.html index 3578524a7f..3889b65fd1 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortByDesc.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortByDesc.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortWith.html index a23ad3e371..5125c52b65 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.sortWith.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split.html index ee25f2c14d..277493952a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split1.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split1.html index f5bbaa84f7..0c754f349a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split1.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.split1.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -220,9 +206,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitInplace.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitInplace.html index bafe484fc6..9e28407101 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitInplace.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitInplace.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitIntoRows.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitIntoRows.html index 5ba8ca13a1..e90a7d28e2 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitIntoRows.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitIntoRows.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.split { name.firstName }.by { it.asIterable() }.intoRows() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -227,8 +206,7 @@
df.split { name }.by { it.values() }.intoRows() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -254,9 +232,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex.html index 9f2decff0d..3540897033 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex1.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex1.html index 7ec4707439..a4b36bf994 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex1.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.splitRegex1.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.ungroup.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.ungroup.html index c243cca37e..03ea9fb4f4 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.ungroup.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.ungroup.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -196,9 +188,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.update.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.update.html index 2e4ef0c798..cab488da98 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.update.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.update.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.update { age }.with { it * 2 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -235,8 +200,7 @@
df.update { colsOf<String>().recursively() }.with { it.uppercase() } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -258,8 +222,7 @@
df.update { weight }.at(1..4).notNull { it / 2 } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -287,8 +250,7 @@
df.update { name.lastName and age }.at(1, 3, 4).withNull() - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -314,9 +276,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateAsFrame.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateAsFrame.html index e521b0af0c..0f8277d46d 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateAsFrame.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateAsFrame.html @@ -1,7 +1,7 @@ - - - - - - - + + +
df.update { name }.asFrame { select { lastName } } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -217,8 +200,7 @@
res.df.remove { name.firstName } - -
+
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -238,9 +220,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updatePerRowCol.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updatePerRowCol.html index 3c14b0ab62..07e6fd8168 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updatePerRowCol.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updatePerRowCol.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWith.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWith.html index 1cb75631e6..cfd5765b31 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWith.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWith.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -204,9 +194,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWithConst.html b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWithConst.html index 0f9182cdc3..d467a5241a 100644 --- a/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWithConst.html +++ b/docs/StardustDocs/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Modify.updateWithConst.html @@ -1,7 +1,7 @@ - - - - - - - - + + +
Input DataFrame: rowsCount = 7, columnsCount = 5
@@ -212,9 +200,9 @@

- - - \ No newline at end of file + + diff --git a/docs/StardustDocs/topics/gettingStartedJupyterNotebook.md b/docs/StardustDocs/topics/gettingStartedJupyterNotebook.md index 8b769c2578..998afd7ec5 100644 --- a/docs/StardustDocs/topics/gettingStartedJupyterNotebook.md +++ b/docs/StardustDocs/topics/gettingStartedJupyterNotebook.md @@ -33,3 +33,13 @@ If you want to use a specific version of the Kotlin DataFrame library, you can s ``` After loading, all essential types will be already imported, so you can start using the Kotlin DataFrame library. Enjoy! + +```kotlin +val df = DataFrame.read("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv") +df // the last expression in the cell is displayed +``` + +When the previous cell with variable declaration is executed, `DataFrame` provides a data schema API based on data: +```kotlin +df.filter { stargazers_count > 50 } +``` diff --git a/docs/StardustDocs/v.list b/docs/StardustDocs/v.list index 14937512cb..83d2669fae 100644 --- a/docs/StardustDocs/v.list +++ b/docs/StardustDocs/v.list @@ -1,5 +1,5 @@ - + diff --git a/examples/idea-examples/json/build.gradle.kts b/examples/idea-examples/json/build.gradle.kts index bfd6d8d3d3..89e3cc8c3d 100644 --- a/examples/idea-examples/json/build.gradle.kts +++ b/examples/idea-examples/json/build.gradle.kts @@ -12,8 +12,6 @@ repositories { mavenCentral() } -kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/") - dependencies { // implementation("org.jetbrains.kotlinx:dataframe:X.Y.Z") implementation(project(":")) diff --git a/examples/idea-examples/movies/build.gradle.kts b/examples/idea-examples/movies/build.gradle.kts index 562d0a566e..e36b005d93 100644 --- a/examples/idea-examples/movies/build.gradle.kts +++ b/examples/idea-examples/movies/build.gradle.kts @@ -11,8 +11,6 @@ repositories { mavenLocal() // in case of local dataframe development } -kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/") - application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.movies.MoviesWithDataClassKt") dependencies { diff --git a/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithColumnAccessor.kt b/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithColumnAccessor.kt index 9c1e1aa091..1f9ce6d18f 100644 --- a/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithColumnAccessor.kt +++ b/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithColumnAccessor.kt @@ -3,16 +3,25 @@ package org.jetbrains.kotlinx.dataframe.examples.movies import org.jetbrains.kotlinx.dataframe.DataFrame import org.jetbrains.kotlinx.dataframe.api.* import org.jetbrains.kotlinx.dataframe.api.column -import org.jetbrains.kotlinx.dataframe.io.read +import org.jetbrains.kotlinx.dataframe.io.* private const val pathToCsv = "examples/idea-examples/movies/src/main/resources/movies.csv" +// Uncomment this line if you want to copy-paste and run the code in your project without downloading the file +//private const val pathToCsv = "https://raw.githubusercontent.com/Kotlin/dataframe/master/examples/idea-examples/movies/src/main/resources/movies.csv" fun main() { + // This example shows how to use the column accessor API to address columns in different operations + // https://kotlin.github.io/dataframe/apilevels.html val genres by column() val title by column() val year by column() - DataFrame + /** + * movieId title genres + * 0 9b30aff7943f44579e92c261f3adc193 Women in Black (1997) Fantasy|Suspenseful|Comedy + * 1 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie (2007) Comedy|Jazz|Family|Animation + */ + val step1 = DataFrame .read(pathToCsv) .split { genres }.by("|").inplace() .split { title }.by { @@ -22,12 +31,30 @@ fun main() { ) }.into(title, year) .explode { genres } - .filter { year() >= 0 && genres() != "(no genres listed)" } + step1.print() + + /** + * Data is parsed and prepared for aggregation + * movieId title year genres + * 0 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Fantasy + * 1 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Suspenseful + * 2 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Comedy + * 3 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Comedy + * 4 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Jazz + * 5 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Family + * 6 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Animation + */ + + val step2 = step1.filter { year() >= 0 && genres() != "(no genres listed)" } .groupBy { year } .sortBy { year } .pivot(inward = false) { genres } .aggregate { count() into "count" - mean() into "mean" - }.print(10) + title().first() into "example" + } + step2.print(rowsLimit = 10) + +// Discover the final reshaped data in an interactive HTML table +// step2.toStandaloneHTML().openInBrowser() } diff --git a/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithDataClass.kt b/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithDataClass.kt index f51a9830cd..c6d58508f3 100644 --- a/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithDataClass.kt +++ b/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithDataClass.kt @@ -2,15 +2,23 @@ package org.jetbrains.kotlinx.dataframe.examples.movies import org.jetbrains.kotlinx.dataframe.DataFrame import org.jetbrains.kotlinx.dataframe.api.* -import org.jetbrains.kotlinx.dataframe.io.read +import org.jetbrains.kotlinx.dataframe.io.* private const val pathToCsv = "examples/idea-examples/movies/src/main/resources/movies.csv" +// Uncomment this line if you want to copy-paste and run the code in your project without downloading the file +//private const val pathToCsv = "https://raw.githubusercontent.com/Kotlin/dataframe/master/examples/idea-examples/movies/src/main/resources/movies.csv" fun main() { - + // This example shows how to use the KProperties API to address columns in different operations + // https://kotlin.github.io/dataframe/apilevels.html data class Movie(val movieId: String, val title: String, val genres: String, val year: Int) - DataFrame + /** + * movieId title genres + * 0 9b30aff7943f44579e92c261f3adc193 Women in Black (1997) Fantasy|Suspenseful|Comedy + * 1 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie (2007) Comedy|Jazz|Family|Animation + */ + val step1 = DataFrame .read(pathToCsv) .split(Movie::genres).by("|").inplace() .split(Movie::title).by { @@ -20,6 +28,19 @@ fun main() { ) }.into(Movie::title, Movie::year) .explode(Movie::genres) + + /** + * Data is parsed and prepared for aggregation + * movieId title year genres + * 0 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Fantasy + * 1 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Suspenseful + * 2 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Comedy + * 3 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Comedy + * 4 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Jazz + * 5 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Family + * 6 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Animation + */ + val step2 = step1 .filter { it[Movie::year] >= 0 && it[Movie::genres] != "(no genres listed)" } .groupBy(Movie::year) .sortBy(Movie::year) @@ -28,4 +49,7 @@ fun main() { count() into "count" mean() into "mean" }.print(10) + +// Discover the final reshaped data in an interactive HTML table +// step2.toStandaloneHTML().openInBrowser() } diff --git a/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithInterface.kt b/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithInterface.kt index 214961fa0f..ad68a5c81e 100644 --- a/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithInterface.kt +++ b/examples/idea-examples/movies/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/movies/moviesWithInterface.kt @@ -2,21 +2,14 @@ package org.jetbrains.kotlinx.dataframe.examples.movies import org.jetbrains.kotlinx.dataframe.DataFrame import org.jetbrains.kotlinx.dataframe.annotations.DataSchema -import org.jetbrains.kotlinx.dataframe.api.by -import org.jetbrains.kotlinx.dataframe.api.convertTo -import org.jetbrains.kotlinx.dataframe.api.count -import org.jetbrains.kotlinx.dataframe.api.explode -import org.jetbrains.kotlinx.dataframe.api.filter -import org.jetbrains.kotlinx.dataframe.api.groupBy -import org.jetbrains.kotlinx.dataframe.api.inplace -import org.jetbrains.kotlinx.dataframe.api.into -import org.jetbrains.kotlinx.dataframe.api.mean -import org.jetbrains.kotlinx.dataframe.api.pivot -import org.jetbrains.kotlinx.dataframe.api.print -import org.jetbrains.kotlinx.dataframe.api.sortBy -import org.jetbrains.kotlinx.dataframe.api.split -import org.jetbrains.kotlinx.dataframe.io.read +import org.jetbrains.kotlinx.dataframe.api.* +import org.jetbrains.kotlinx.dataframe.io.* +/** + * movieId title genres + * 0 9b30aff7943f44579e92c261f3adc193 Women in Black (1997) Fantasy|Suspenseful|Comedy + * 1 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie (2007) Comedy|Jazz|Family|Animation + */ @DataSchema interface Movie { val movieId: String @@ -25,9 +18,16 @@ interface Movie { } private const val pathToCsv = "examples/idea-examples/movies/src/main/resources/movies.csv" +// Uncomment this line if you want to copy-paste and run the code in your project without downloading the file +//private const val pathToCsv = "https://raw.githubusercontent.com/Kotlin/dataframe/master/examples/idea-examples/movies/src/main/resources/movies.csv" fun main() { - DataFrame + // This example shows how to the use extension properties API to address columns in different operations + // https://kotlin.github.io/dataframe/apilevels.html + + // Add the Gradle plugin and run `assemble` + // check the README https://github.com/Kotlin/dataframe?tab=readme-ov-file#setup + val step1 = DataFrame .read(pathToCsv).convertTo() .split { genres }.by("|").inplace() .split { title }.by { @@ -37,6 +37,20 @@ fun main() { ) }.into("title", "year") .explode("genres") + step1.print() + + /** + * Data is parsed and prepared for aggregation + * movieId title year genres + * 0 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Fantasy + * 1 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Suspenseful + * 2 9b30aff7943f44579e92c261f3adc193 Women in Black 1997 Comedy + * 3 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Comedy + * 4 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Jazz + * 5 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Family + * 6 2a1ba1fc5caf492a80188e032995843e Bumblebee Movie 2007 Animation + */ + val step2 = step1 .filter { "year"() >= 0 && genres != "(no genres listed)" } .groupBy("year") .sortBy("year") @@ -44,5 +58,9 @@ fun main() { .aggregate { count() into "count" mean() into "mean" - }.print(10) + } + + step2.print(10) +// Discover the final reshaped data in an interactive HTML table +// step2.toStandaloneHTML().openInBrowser() } diff --git a/examples/idea-examples/titanic/build.gradle.kts b/examples/idea-examples/titanic/build.gradle.kts index 99302369e1..ee812ef50b 100644 --- a/examples/idea-examples/titanic/build.gradle.kts +++ b/examples/idea-examples/titanic/build.gradle.kts @@ -20,10 +20,6 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlin-deeplearning-dataset:0.5.1") } -// Make IDE aware of the generated code: -kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/") - - dataframes { schema { data = "src/main/resources/titanic.csv" diff --git a/examples/idea-examples/youtube/build.gradle.kts b/examples/idea-examples/youtube/build.gradle.kts index 9b5c032e59..b7b1277e7b 100644 --- a/examples/idea-examples/youtube/build.gradle.kts +++ b/examples/idea-examples/youtube/build.gradle.kts @@ -11,8 +11,6 @@ repositories { mavenLocal() // in case of local dataframe development } -kotlin.sourceSets.getByName("main").kotlin.srcDir("build/generated/ksp/main/kotlin/") - application.mainClass.set("org.jetbrains.kotlinx.dataframe.examples.youtube.YoutubeKt") dependencies {