Skip to content

DOC: Add a Dataset.reindex_like example - #11792

Open
ZackaryLoevseth wants to merge 1 commit into
pydata:mainfrom
ZackaryLoevseth:doc-dataset-reindex-like-example
Open

ZackaryLoevseth wants to merge 1 commit into
pydata:mainfrom
ZackaryLoevseth:doc-dataset-reindex-like-example

Conversation

@ZackaryLoevseth

@ZackaryLoevseth ZackaryLoevseth commented Oct 23, 2026 •

Copy link
Copy Markdown

Description

This example makes reindex_like easier to understand by showing, with small concrete datasets, exactly how labels are aligned and what happens to missing ones — the new label gets NaN. It also fills one of the gaps in the umbrella docstring-examples checklist in #6793, following the repr style maintainers asked for in #11713.

Part of #6793.

Verification

Codex ran these checks against base fbc4cf19b919ce23fd0f7d419e9c141f046788a9 with the unchanged candidate:

  • Exact Dataset.reindex_like doctest: 1 passed.
  • Nearby parameterized reindex regressions: 5 passed.
  • Ruff 0.17.0 lint, docstring preview rules and formatting; blackdoc 0.4.6 with Black 25.11.0: passed.
  • Focused Sphinx 9.1.1 HTML build with warnings treated as errors, plus verification of all three rendered Dataset representations: passed.

The full test suite, full documentation build, pre-commit suite and hosted CI were not run locally. Pytest emitted a non-failing warning about asyncio_default_fixture_loop_scope.

AI Disclosure

  • This PR contains AI-generated content.
  • I have tested any AI-generated content in my PR.
  • I take responsibility for any AI-generated content in my PR.

I used a coordinated multi-agent workflow with Codex, GitHub Copilot and Kimi for development, testing, independent review and wording. I reviewed the changes and supporting evidence and take responsibility for the contribution. Codex ran the reported checks. This involved multiple task-specific instructions rather than a single prompt.

Tools: Codex, GitHub Copilot and Kimi.

Prompt information — summary of actual bounded tasks, not a verbatim transcript: prepare one small xarray documentation contribution after checking current contribution rules and duplicate work; add and review a concrete Dataset.reindex_like example showing label alignment and missing values; verify the executable example, nearby regressions, formatting and focused rendering; preserve the reviewed patch and report actual verification limits.

Add a concrete example showing label alignment and NaN fill values.

Created by Codex on behalf of @HayosoAi.

Co-authored-by: Codex <noreply@openai.com>

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