Open bj-s opened 1 year ago
Thanks! It looks like you can even do .xarray().to_series()
to get this.
I think it might be best to hold off on a shortcut for this until we have a pulse ID that's meaningful across components, though. The second layer of the MultiIndex you're getting with .to_series()
or .to_dataframe()
is basically meaningless at the moment, but pandas will still happily line up dim_0
from one series with dim_0
from another and give you garbage results. If we one day have common pulse IDs that we can put in the second index layer, it would make a whole lot more sense.
extra_data.KeyData supports the
pandas.Series
output only for one dimensional data. For multi-dimensional data it fails withTypeError: pandas Series are only available for 1D data
.With MultiIndex, support for multi-dimensional data could be added to produce a
pandas.Series
like: