You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ They show how to convert to and from Kotlin Dataframe and their respective table
16
16
for an example of using Kotlin Dataframe with [Spark](https://spark.apache.org/).
17
17
***Spark (with Kotlin Spark API)**: See the [kotlinSpark folder](./idea-examples/unsupported-data-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/kotlinSpark)
18
18
for an example of using Kotlin DataFrame with the [Kotlin Spark API](https://github.com/JetBrains/kotlin-spark-api).
19
+
***Multik**: See the [multik folder](./idea-examples/unsupported-data-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/multik)
20
+
for an example of using Kotlin Dataframe with [Multik](https://github.com/Kotlin/multik).
Copy file name to clipboardExpand all lines: examples/idea-examples/unsupported-data-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/multik/compatibilityLayer.kt
+84-41Lines changed: 84 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,16 @@ import kotlin.reflect.typeOf
35
35
/** Converts a one-dimensional array ([D1Array]) to a [DataColumn] with optional [name]. */
36
36
inlinefun <reifiedN> D1Array<N>.convertToColumn(name:String = ""): DataColumn<N> = column(toList()) named name
37
37
38
+
/**
39
+
* Converts a one-dimensional array ([D1Array]) of type [N] into a DataFrame.
40
+
* The resulting DataFrame contains a single column named "value", where each element of the array becomes a row in the DataFrame.
41
+
*
42
+
* @return a DataFrame where each element of the source array is represented as a row in a column named "value" under the schema [ValueProperty].
Copy file name to clipboardExpand all lines: examples/idea-examples/unsupported-data-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/examples/multik/main.kt
0 commit comments