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
@ileasile - agreed this enhancement would be great for toDataFrameByProperties. Additionally, I couldn't find a simple move method to order all the columns at once.
This works but not very elegant:
var df= dataFrameRows.toDataFrameByProperties() asDataFrame<BKSamRecord>
val colList:Array<String> =BKSamRecord::class.primaryConstructor?.parameters?.mapNotNull { it.name }!!.toTypedArray()
val ordDf=df.move(*colList).toLeft()
We cannot infer the properties order in RT for this class:
But we can do it for this class:
To achieve this, we may list primary constructor arguments names and map they to properties names:
The text was updated successfully, but these errors were encountered: