Skip to content

Fix utils.set_index_dtypes()#504

Merged
hagenw merged 7 commits intodevfrom
simplify-segmented-index
Feb 2, 2026
Merged

Fix utils.set_index_dtypes()#504
hagenw merged 7 commits intodevfrom
simplify-segmented-index

Conversation

@hagenw
Copy link
Member

@hagenw hagenw commented Feb 2, 2026

Ensures audformat.utils.set_index_dtypes() is able to change a string dtype from str (pd.StringDtype(na_value=np.nan)) to string (pd.StringDtype(na_value=pd.NA)) as well.

As set_index_dtypes() works again, we can switch back to the original code of segmented_index(). The new code shows identical behavior, but it is nice to limit the changes in dev to the once needed to support pandas 3.0.0.

@hagenw hagenw changed the title Simplify creation of segmented index Fix utils.set_index_dtypes() Feb 2, 2026
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.0%. Comparing base (6e48937) to head (cd8e320).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
Files with missing lines Coverage Δ
audformat/core/index.py 100.0% <100.0%> (ø)
audformat/core/utils.py 100.0% <100.0%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hagenw hagenw merged commit 272cb7c into dev Feb 2, 2026
13 checks passed
@hagenw hagenw deleted the simplify-segmented-index branch February 2, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant