DataFrame.rename
Renames columns: rename(["a", "b"], ["x", "y"]).
Parameters
from | the existing names |
to | the new names, positionally |
Returns
the renamed frame.
Throws
DataFrameException when an old name is absent.
Renames columns: rename(["a", "b"], ["x", "y"]).
from | the existing names |
to | the new names, positionally |