pandera.DataFrameSchema.rename_columns

DataFrameSchema.rename_columns(rename_dict)[source]

Rename columns using a dictionary of key-value pairs.

Parameters

rename_dict (dict) – dictionary of ‘old_name’: ‘new_name’ key-value pairs.

Returns

dataframe schema (copy of original)