Repository navigation
TST: Enable doctest for dataframes.rst (#19716) - #19804
Merged
Merged
Conversation
Contributor
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
pllim
reviewed
May 26, 2026
pllim
reviewed
May 27, 2026
arsenelupin14
force-pushed
the
fix-doctest-19716
branch
from
May 28, 2026 03:26
9ab71bb to
753ec1d
Compare
added 5 commits
May 28, 2026 13:15
Adds `.. doctest-skip::` to `type(df)` assertions to prevent failures on older pandas versions (where output is `pandas.core.frame.DataFrame`). Also fixes a pre-existing formatting mismatch in `Table.from_pandas` output (string8 to str1).
Member
|
Remote data and link check failures are unrelated. |
pllim
reviewed
May 28, 2026
pllim
left a comment
Member
There was a problem hiding this comment.
Note to self: Extra CI looked good on 2026-05-28 run, so I removed the label for future runs as my comments here are minor.
Per reviewer request, replaces unconditional `.. doctest-skip::` with `.. doctest-requires:: pandas>=3.0` to ensure the type() assertion runs on modern pandas versions, and updates expected string back to `<class 'pandas.DataFrame'>`.
neutrinoceros
removed their request for review
May 29, 2026 06:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #19716
This pull request is to address the missing doctest coverage in docs/table/dataframes.rst as discussed in #19716.
Here's the summary of the implementation:
https://astropy--19804.org.readthedocs.build/en/19804/table/dataframes.html