DataFrame.rename

DataFrame rename(string[] from, string[] to) @safe pure

Renames columns: rename(["a", "b"], ["x", "y"]).

Parameters

fromthe existing names
tothe new names, positionally

Returns

the renamed frame.

Throws

DataFrameException when an old name is absent.