nctoolkit.DataSet.rename

DataSet.rename(self, newnames)

Rename variables in a dataset

Parameters

newnames (dict) – Dictionary with key-value pairs being original and new variable names

Examples

If you want to rename a variable x to y, do the following:

>>> ds.rename({"x":"y"})