Table Of Contents

Frame rename_columns


rename_columns(self, names)

Rename columns

Parameters:names : None
Returns:: _Unit

Examples

Start with a frame with columns Wrong and Wong.

>>> print my_frame.schema
[('Wrong', str), ('Wong', str)]

Rename the columns to Right and Wite:

>>> my_frame.rename_columns({"Wrong": "Right, "Wong": "Wite"})

Now, what was Wrong is now Right and what was Wong is now Wite.

>>> print my_frame.schema
[('Right', str), ('Wite', str)]