Closed hagenw closed 3 months ago
I reported it at https://github.com/pandas-dev/pandas/issues/58999
The underlying calculation was changed in pandas
2.2.0 and this will not be fixed in pandas
. So, I don't think we can do much about here.
The good news is that it will most likely not affect the caching in audinterface
as the results do not change for a filewise or segmented index:
>>> index = audformat.segmented_index(["f1"], [0], [1])
>>> audformat.utils.hash(index)
'5191304663967199877'
But maybe, we should add a test for it in audinterface
.
Assume the following dataframe:
With
pandas
2.1.0 we get:With
pandas
2.2.2 we get:We had a similar problem before, see https://github.com/pandas-dev/pandas/issues/55452. When revisiting using the example presented there:
I can repeat the results for
pandas
2.1.0:In
pandas
2.2.2 it also works:But when applying it on the dataframe from above, it fails with:
pandas
2.1.0pandas
2.2.2: