Open Jolanrensen opened 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.
df.rename { col }.into("newName")
to
into
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.
as
Pair
Map
Other uses of the word "into" in renaming/adding/moving columns in the API looks fine to me.
df.rename { col }.into("newName")
is not very common English. I always want to typeto
instead ofinto
, 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 whileto
is used often forPair
/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.