-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Remove literal string input for read_xml #53809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mroeschke
merged 23 commits into
pandas-dev:main
from
rmhowe425:dev/depr/literal-str-read_xml
Jul 11, 2023
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f347e8e
Updating documentation and adding deprecation logic for read_xml.
rmhowe425 296b45a
Fixing documentation issue and adding unit test
rmhowe425 69cdc1a
Updating unit tests and documentation.
rmhowe425 83a9177
Merge branch 'main' into dev/depr/literal-str-read_xml
rmhowe425 0f0f38b
Fixing unit tests and documentation issues
rmhowe425 2c848ac
Fixing unit tests and documentation issues
rmhowe425 b8a582c
Fixing unit tests and documentation issues
rmhowe425 92bc6fa
Fixing import error in documentation
rmhowe425 8bbd7c4
Updated deprecation logic per reviewer recommendations.
rmhowe425 5aece78
Updating deprecation logic and documentation per reviewer recommendat…
rmhowe425 6f15924
Fixing logic error
rmhowe425 00f7b15
Fixing implementation per reviewer recommendations.
rmhowe425 20e7ef2
Updating implementation per reviewer recommendations.
rmhowe425 526c224
Cleaning up the deprecation logic a bit.
rmhowe425 9dfa18d
Merge branch 'main' into dev/depr/literal-str-read_xml
rmhowe425 65f88b9
Updating implementation per reviewer recommendations.
rmhowe425 ec28efa
Merge branch 'main' into dev/depr/literal-str-read_xml
rmhowe425 2c58638
Merge branch 'main' into dev/depr/literal-str-read_xml
rmhowe425 e08f4e0
Merge branch 'main' into dev/depr/literal-str-read_xml
rmhowe425 ba1edd6
Merge branch 'main' into dev/depr/literal-str-read_xml
rmhowe425 b7e1fb6
Updating unit tests
rmhowe425 14d2cb1
Fixing discrepancy in doc string.
rmhowe425 c215a94
Updating implementation based on reviewer recommendations.
rmhowe425 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply for organization and not a must, can we move this warning logic to the next called method
_parse
written just before this mainread_xml
call? This moves it away from the docs lines. Also, in deprecated warning in docs, consider changinghtml
toxml
, two different types of documents.Also, other unit tests other than your new one which reads literal strings are failing with this warning. You may have to check for
Pathlike
objects as well as string. Be sure to runpytest
locally before pushing commit!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mroeschke the documentation discrepancy is fixed here. Also, unit tests are passing and CI tests are green. Pathlike objects are already being checked in my conditional statement in xml.py
Not sure how you feel about moving the warning logic to
_parse
. This isn't something that we did in similar PRs. Not sure it matters?Otherwise, I think this PR is ready for inspection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed this warning would be better suited in
_parse
as well.