Skip to content

Update doctests for pandas 3.0 compatibility - #21726

Merged
mroeschke merged 2 commits into
NVIDIA:pandas3from
vyasr:fix/update-doctests-pandas3
Mar 10, 2026
Merged

Update doctests for pandas 3.0 compatibility#21726
mroeschke merged 2 commits into
NVIDIA:pandas3from
vyasr:fix/update-doctests-pandas3

Conversation

@vyasr

@vyasr vyasr commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update expected doctest output across 12 files for pandas 3.0 changes
  • Key changes: dtype: objectdtype: str, NoneNaN for null string display, datetime64[ns]datetime64[us], deprecated T freq alias → min, rolling window time-offset semantics, shorter pandas type repr
  • Skip read_json doctest due to pre-existing issue with string input handling (not pandas-related)

Update expected doctest output across 12 files:
- dtype: object → dtype: str for string data
- None → NaN for null string display in Series output
- None → NaN for non-applicable describe stats
- datetime64[ns] → datetime64[us] for timestamps
- Categories (N, object) → Categories (N, str) for string categoricals
- T freq alias → min for deprecated minute offset
- Rolling window time-offset semantics updated
- pandas type repr shortened (pandas.core.frame.DataFrame → pandas.DataFrame)
- Skip read_json doctest (pre-existing issue with string input handling)
@vyasr
vyasr requested a review from a team as a code owner March 10, 2026 00:21
@vyasr
vyasr requested review from bdice and mroeschke and removed request for a team March 10, 2026 00:21
@github-actions github-actions Bot added the Python Affects Python cuDF API. label Mar 10, 2026
@GPUtester GPUtester moved this to In Progress in cuDF Python Mar 10, 2026
@galipremsagar galipremsagar added the 5 - Ready to Merge Testing and reviews complete, ready to merge label Mar 10, 2026
Comment thread python/cudf/cudf/tests/test_doctests.py Outdated
@mroeschke
mroeschke merged commit 5862bab into NVIDIA:pandas3 Mar 10, 2026
25 of 27 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in cuDF Python Mar 10, 2026
@vyasr
vyasr deleted the fix/update-doctests-pandas3 branch March 10, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to Merge Testing and reviews complete, ready to merge Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants