Skip to content

BUG: track CoW references through Index.where#65846

Open
jbrockmendel wants to merge 2 commits into
pandas-dev:mainfrom
jbrockmendel:followup-65265
Open

BUG: track CoW references through Index.where#65846
jbrockmendel wants to merge 2 commits into
pandas-dev:mainfrom
jbrockmendel:followup-65265

Conversation

@jbrockmendel

Copy link
Copy Markdown
Member

Follow-up to post-merge review comments on GH-65265 (cc @jorisvandenbossche).

Index.where constructed the intermediate Series and the result Index from raw ._values, so CoW references were not tracked when Series.where took a no-copy path. Passing the pandas objects through the constructors (which pick up _references when copy=False) restores correct tracking; unreleased regression, so no whatsnew.

🤖 Generated with Claude Code

jbrockmendel and others added 2 commits June 10, 2026 07:33
Follow-up to GH#65265 review comments: construct the intermediate
Series and result Index from pandas objects instead of raw arrays so
CoW references are tracked in no-copy cases.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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