Naming of update() #2703
-
I noticed that to create new columns the function Are there plans for the python version and the R version of this function to have the same name in the future? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Although it is technically possible to create a variable with any name in Python, including The issue that you linked suggests function name This leaves the possibility that R's function can be called |
Beta Was this translation helpful? Give feedback.
Although it is technically possible to create a variable with any name in Python, including
:=
, there is no normal way to refer to these variables, so it just wouldn't be very practical. Which is why we gave it a traditional name instead -update()
, coming from SQLUPDATE
operator. We might also add at some pointselect()
function which would work in the same way as a "bare"j
expression.The issue that you linked suggests function name
set()
, however, that wouldn't work for Python whereset()
is a builtin that creates a set object.This leaves the possibility that R's function can be called
update()
, but I don't know whether this name would make sense for R users.