to_hdf appears to be broken since the 3.0 update. I believe this is because this line reindexes when there is a MultiIndex. However, each sub-index in a multi-index returns true for the is instance line meaning that the reset index gets called multiple times.
|
self = self.reset_index(idx) |
Not sure about an immediate solution but one option could be cfxarray (https://cf-xarray.readthedocs.io/en/latest/coding.html) which is suggested by Xarray when trying to save netcdfs with multi-index
to_hdf appears to be broken since the 3.0 update. I believe this is because this line reindexes when there is a MultiIndex. However, each sub-index in a multi-index returns true for the is instance line meaning that the reset index gets called multiple times.
ptsa/ptsa/data/timeseries.py
Line 178 in 8648b60
Not sure about an immediate solution but one option could be cfxarray (https://cf-xarray.readthedocs.io/en/latest/coding.html) which is suggested by Xarray when trying to save netcdfs with multi-index