Skip to content

Revert unintended change in tests/core/test_model.py#3

Merged
nickmuoh merged 4 commits into
mainfrom
copilot/fix-pandas-warnings-in-seed-model
Jun 1, 2026
Merged

Revert unintended change in tests/core/test_model.py#3
nickmuoh merged 4 commits into
mainfrom
copilot/fix-pandas-warnings-in-seed-model

Conversation

Copy link
Copy Markdown

Copilot AI commented May 31, 2026

  • This change addresses two warning-prone behaviors that were surfacing in the seed and Snowflake paths. The first issue was that seed batches were yielded as view-like slices, which meant mutations could leak across batches and make warning reproduction unreliable. The second issue was that Snowflake DataFrame uploads preserved a non-default index, which could carry unexpected row labels into the upload path.

  • The fix makes seed batch reads return independent DataFrame copies and normalizes Snowflake uploads by resetting the DataFrame index before handing data to write_pandas, while preserving the intended source column ordering.

  • The accompanying tests demonstrate the expected behavior directly: seed batches are isolated from each other, and the Snowflake upload path receives a DataFrame with a fresh default index.

Copilot AI requested a review from nickmuoh May 31, 2026 14:11
@nickmuoh nickmuoh marked this pull request as ready for review May 31, 2026 16:52
@nickmuoh nickmuoh merged commit 9170987 into main Jun 1, 2026
28 of 34 checks passed
@nickmuoh nickmuoh deleted the copilot/fix-pandas-warnings-in-seed-model branch June 1, 2026 17:02
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.

2 participants