Open
Description
Is your feature request related to a problem? Please describe.
I think that the behavior of the .reset_index()
and .reset_coords()
methods is a bit non-intuitive, especially when coming to xarray
from Pandas
.
Describe the solution you'd like
One proposal is this:
- Change the name of
.reset_index()
to.index_to_coords()
, because it seems like this is what the method really does - Change the name of
.reset_coords()
to.coords_to_vars()
, because it seems like this is what the method really does - Make a new method called
.reset_index()
that has the same function asPandas
.reset_index()
, namely to make an index ofint
s from 0 tonrows
- Make a new method called
.reset_coords()
that has an analagous function toPandas
.reset_index()
, but forcoords
, namely to make ancoordinate
ofint
s from 0 to the length of that coordinate
Metadata
Metadata
Assignees
Labels
No labels