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