rename_coords

function of dascore.proc.coords source

rename_coords(
    self: Patch ,
    **kwargs ,
)-> ‘PatchType’

Rename coordinate of Patch.

Parameters

Parameter Description
**kwargs The mapping from old names to new names

Examples

import dascore as dc
pa = dc.get_example_patch()
# rename dim "distance" to "fragrance"
pa2 = pa.rename_coords(distance='fragrance')
assert 'fragrance' in pa2.dims