Kotlin / dataframe

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

Rename operation: `rename(x).to(y)` #555

Open Jolanrensen opened 6 months ago

Jolanrensen commented 6 months ago

df.rename { col }.into("newName") is not very common English. I always want to type to instead of into, so my suggestion is to rename this function.

The most used prepositions are "renamed to" or "renamed as": https://english.stackexchange.com/questions/100296/which-preposition-to-use-with-rename

Unfortunately as is a reserved keyword, but while to is used often for Pair/Map creation, we can still use it in combination with the DSL.

Other uses of the word "into" in renaming/adding/moving columns in the API looks fine to me.