Skip to content

Preserve row weights across reindex and merge - #344

Draft
MaxGhenis wants to merge 1 commit into
mainfrom
codex/4007-microdf-audit-verify-pandas-row-operations-keep-each-w
Draft

MaxGhenis wants to merge 1 commit into
mainfrom
codex/4007-microdf-audit-verify-pandas-row-operations-keep-each-w

Conversation

@MaxGhenis

Copy link
Copy Markdown
Collaborator

This pull request was written by a Codex cloud task for Max. No session owns it yet.
It builds on the weight-preservation work in #336 and the fail-closed behavior tracked in #333.
Preserve row weights when pandas reindexes both axes and preserve missing weights on matched merge rows. Reject direct pandas merges that can silently reset weights and add six regression cases.

The synthetic row oracle checked 18,060 single-operation and two-operation cases per pandas version. The patched checkout produced zero wrong-weight or plain-pandas results on pandas 2.3.3 and 3.1.1.
The focused suite passed all 99 tests on both versions. The full suite passed 858 tests on pandas 2.3.3. On pandas 3.1.1 it passed 848 tests and reproduced the same ten pre-existing binary-ufunc failures as main. Lint and git diff checks passed.

Validation ran on Linux with Python 3.12.14. The aggregation and construction paths already tracked in #336 and #333 were outside this audit.

Opened by a Codex cloud task (queue file 4007-microdf-audit-verify-pandas-row-operations-keep-each-w).

This branch has not been deployed

No deployments
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