import dascore as dc
pa = dc.get_example_patch()
# rename dim "distance" to "fragrance"
pa2 = pa.rename_coords(distance='fragrance')
assert 'fragrance' in pa2.dimsRenameCoords
RenameCoords(
*args ,
**kwargs ,
)-> None
Rename coordinate of Patch.
Parameters
| Parameter | Description |
|---|---|
| **kwargs | The mapping from old names to new names |
Examples
Methods
| Name | Description |
|---|---|
| check | Refuse a patch which does not carry what the operation needs. |
| derive | Return the coordinates under their new names; there is no kernel. |
| new | Create new instance with some attributed updated. |
| rename_coords | Rename coordinate of Patch. |
| plan |
Return the keyword arguments kernel needs; see the class docs.
|
| reconcile | Return the result’s metadata once the data are known; default as is. |
| run | Run the operation: check, derive, plan, kernel, reconcile, record. |