You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the Coordinates objects are not as useful as I'd like them to be, so in this issue I'd like to collect all the methods it should support. Some of these already exist, but listing them again helps with defining a coherent API:
coordinate variables
assignment of new coordinates (from Variable / DataArray / Coordinates / any array): Coordinates.assign()
deletion of coordinates (similar to Dataset.drop_vars): only via del coords["x"] but a Coordinates.drop_vars() might be welcome I guess
renaming coordinates: no specific method yet, Coordinates.rename_vars()?
renaming dimensions on coordinates: no specific method yet, Coordinates.rename_dims()?
indexes
assignment of index instances: could use Coordinates.assign(Coordinates.from_xindex(idx_obj)) but one index at a time
Uh oh!
There was an error while loading. Please reload this page.
What is your issue?
At the moment, the
Coordinates
objects are not as useful as I'd like them to be, so in this issue I'd like to collect all the methods it should support. Some of these already exist, but listing them again helps with defining a coherent API:Variable
/DataArray
/Coordinates
/ any array):Coordinates.assign()
Dataset.drop_vars
): only viadel coords["x"]
but aCoordinates.drop_vars()
might be welcome I guessCoordinates.rename_vars()
?Coordinates.rename_dims()
?Coordinates.assign(Coordinates.from_xindex(idx_obj))
but one index at a timeCoordinates.drop_indexes()
(Add Coordinatesset_xindex()
anddrop_indexes()
methods #8118)Coordinates.set_xindex()
(Add Coordinatesset_xindex()
anddrop_indexes()
methods #8118)|
)cc @benbovy, @scottyhq
The text was updated successfully, but these errors were encountered: