Raise when Dataset.update would replace an index with one of another type #11621
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.49) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 329 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #11621"
general
weight: 0.35
matthiasschabel
Description
ds["nir"] = nirsilently swaps a Dataset's custom index (e.g. theRasterIndexfrom the custom-index guide) for the defaultPandasIndexthatnircarries. Same forassignandupdate. This now raises and points atdrop_indexes:PandasIndexare unaffected.ds.update({"x": ...})) still replaces it.This also raises for a Dataset with a
RangeIndexwhen the assigned array carries its own labels; that used to silently become aPandasIndex. Listed under breaking changes.<details>
<summary>Reproducer with RasterIndex</summary>
</details>
Checklist
whats-new.rstAI Disclosure
- [x] I have tested any AI-generated content in my PR.
- [x] I take responsibility for any AI-generated content in my PR.
Tools: Codex (gpt-6-sol) drafted the change and tests at my direction; Claude (Opus 5.5) and Codex (gpt-6-astra) reviewed. I have read and validated every line.