Skip to content

Read strided categoricals, tuples, pandas 2 Series and reversed views in the pandas and numpy scans - #711

Open
evertlammerts wants to merge 2 commits into
v2.0-cyanopterafrom
fix-input-scan-values
Open

evertlammerts wants to merge 2 commits into
v2.0-cyanopterafrom
fix-input-scan-values

Conversation

@evertlammerts

Copy link
Copy Markdown
Member

A pandas 2 categorical read through a strided view (df[::2], iloc[1::2]) returned the rows of the full column: the category scan stepped by element while the codes view had a stride (299 of 300 rows wrong with int16 codes). A tuple of arrays, a pandas 2 Series, a range or a set, and any reversed view (df[::-1]) raised a bare std::bad_cast, where 1.5.6 read the tuple and refused the rest with a clear error.

@evertlammerts
evertlammerts added this pull request to the merge queue Oct 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 23, 2026

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