We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pandas as pd import pint_xarray import numpy as np import xarray as xr mindex = pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("lat", "lon")) da = xr.DataArray(np.arange(len(mindex)), dims="multi", coords={"multi": mindex}) da.pint.dequantify()
<xarray.DataArray (multi: 4)> array([0, 1, 2, 3]) Coordinates: * multi (multi) object ('a', 1) ('a', 2) ('b', 1) ('b', 2)
After dequantifying da.mindex is no longer a multiindex on xarray 2022.3.0
da.mindex
The text was updated successfully, but these errors were encountered:
MultiIndex
dequantify
Successfully merging a pull request may close this issue.
After dequantifying
da.mindex
is no longer a multiindex on xarray 2022.3.0The text was updated successfully, but these errors were encountered: