Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
761 stars 48 forks source link

`Map<String, Any?>.toDataRow()` function? #719

Open Jolanrensen opened 3 weeks ago

Jolanrensen commented 3 weeks ago

DataFrame has the function pair: Map<String, Iterable<Any?>>.toDataFrame() and AnyFrame.toMap(): Map<String, List<Any?>>

But for DataRow there's just: AnyRow.toMap(): Map<String, Any?>.

Especially in notebooks it might be helpful to be able to convert a simple Map to a DataRow to get generated accessors. It might also make notations like https://github.com/Kotlin/dataframe/issues/710 possible (so to construct a DataFrame from rows instead of from columns, albeit at a performance cost).