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
{{ message }}
Repository navigation
Re-think use of MultiIndex in to_xarray_dataset #7140
The to_xarray_dataset method, by default, will create a MultiIndex if there are repeated values along any axis, and will then convert all coords to data_vars. This can cause problems in the expected xarray dataset structure.
We should re-think what cases really need a pandas index or a MultiIndex to minimize these unexpected issues.
I think part of the problem is that a interrupted dataset returns only the created data from get_parameter_data this means that trying to reshape the data into the correct shape will always fail and the fallback will use MultiIndex. It might make more sense if the data was padded with NaN or similar for the missing data.
Activity
jenshnielsen commentedon Aug 22, 2025
I think part of the problem is that a interrupted dataset returns only the created data from
get_parameter_datathis means that trying to reshape the data into the correct shape will always fail and the fallback will use MultiIndex. It might make more sense if the data was padded with NaN or similar for the missing data.