Kotlin / dataframe

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

Split into typed column accessors creates string cols nonetheless #565

Open Jolanrensen opened 8 months ago

Jolanrensen commented 8 months ago
dataFrameOf("address")(
    "12 Street A",
    "124346 Street B"
) 
  .split("address")
  .by(' ', limit = 2)
  .into(column<Int>("number"), column<String>("street"))

// number: String
// street: String

Split into allows you to specify column accessors (or KProperties) with a type, however, just the name of these columns is taken. It might be expected that writing something like this would attempt to auto-convert a column to the given type.