Skip to content

TST: add regression test for #26558#64623

Open
EthicalCha0s wants to merge 2 commits intopandas-dev:mainfrom
EthicalCha0s:test-gh26558-mixed-multiindex-add
Open

TST: add regression test for #26558#64623
EthicalCha0s wants to merge 2 commits intopandas-dev:mainfrom
EthicalCha0s:test-gh26558-mixed-multiindex-add

Conversation

@EthicalCha0s
Copy link

@EthicalCha0s EthicalCha0s commented Mar 15, 2026

Summary

Adds a regression test for DataFrame.add(fill_value=0) when the index is a MultiIndex containing a mix of string and datetime labels.

References: #26558

Why

I couldn’t reproduce the incorrect result from GH#26558 on current main, but I also couldn’t find a test covering this exact case. This adds coverage for the behavior so we don’t regress it later.

Testing

  • Added a targeted test in pandas/tests/frame/test_arithmetic.py
  • Ran:
    python -m pytest pandas/tests/frame/test_arithmetic.py -k mixed_string_datetime_index -n 0
  • Result: passed

@EthicalCha0s EthicalCha0s changed the title TST: add regression test for GH#26558 TST: add regression test for #26558 Mar 16, 2026
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