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.