import dascore as dc
pa = dc.get_example_patch()
# rename dim "distance" to "fragrance"
pa2 = pa.rename_coords(distance='fragrance')
assert 'fragrance' in pa2.dimsrename_coords
rename_coords(
self: Patch ,
**kwargs ,
)-> ‘PatchType’
Rename coordinate of Patch.
Parameters
| Parameter | Description |
|---|---|
| **kwargs | The mapping from old names to new names |