Closed
Description
https://kotlin.github.io/dataframe/columnselectors.html doesn't support KPoperties except in some select places:
df.select { it[Person::name] } // works
df.select { Person::name } // cannot work
df.select { Person::name() } // this also not actually...
df.select { (Person::name)() } // this could
// by column path
df.select { it[Person::name][Name::firstName] } // works
df.select { Person::name[Name::firstName] }
// with a new name
df.select { Person::name named "Full Name" }
// converted
df.select { Person::name[Name::firstName].map { it.lowercase() } }
// column arithmetics
df.select { 2021 - Person::age }
// two columns
df.select { Person::name and Person::age } // works
// range of columns
df.select { Person::name..Person::age }
// all children of ColumnGroup
df.select { Person::name.all() }
// dfs traversal of all children columns
df.select { Person::name.allDfs() }
If we claim to have all these APIs, then this should also be supported