from dascore.examples import get_example_patch
= get_example_patch()
pa # rename dim "distance" to "fragrance"
= pa.rename(distance='fragrance')
pa2 assert 'fragrance' in pa2.dims
rename
Rename coordinate or dimensions of Patch.
Parameters
Parameter | Description |
---|---|
**names | The mapping from old names to new names |