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).
DataFrame has the function pair:
Map<String, Iterable<Any?>>.toDataFrame()
andAnyFrame.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 aDataRow
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).