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
https://github.com/pydata/xarray/blob/master/xarray/core/dataset.py#L2755
checking for a MI via
if hasattr(idx, 'levels'): # is a MI
should be changed to
if idx.nlevels > 1: # is a MI
see here. This is not currently implemented but good to get ahead of this hard to detect usage of the API.
The text was updated successfully, but these errors were encountered:
Thanks for the heads up.
For our purposes, I think it would actually be just fine to use isinstance(idx, pd.MultiIndex) here.
isinstance(idx, pd.MultiIndex)
Sorry, something went wrong.
COMPAT: MultiIndex checking is fragile (#1833) (#1916)
58bc024
No branches or pull requests
https://github.com/pydata/xarray/blob/master/xarray/core/dataset.py#L2755
checking for a MI via
should be changed to
see here. This is not currently implemented but good to get ahead of this hard to detect usage of the API.
The text was updated successfully, but these errors were encountered: