Skip to content
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

DOC: Fix F821 error in docstring #57863

Merged
merged 2 commits into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions pandas/tests/io/xml/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def xml_data_path():
Examples
--------
>>> def test_read_xml(xml_data_path):
... read_xml(xml_data_path / "file.xsl")
... pd.read_xml(xml_data_path / "file.xsl")
"""
return Path(__file__).parent.parent / "data" / "xml"

Expand All @@ -24,7 +24,7 @@ def xml_books(xml_data_path, datapath):
Examples
--------
>>> def test_read_xml(xml_books):
... read_xml(xml_books)
... pd.read_xml(xml_books)
"""
return datapath(xml_data_path / "books.xml")

Expand All @@ -37,7 +37,7 @@ def xml_doc_ch_utf(xml_data_path, datapath):
Examples
--------
>>> def test_read_xml(xml_doc_ch_utf):
... read_xml(xml_doc_ch_utf)
... pd.read_xml(xml_doc_ch_utf)
"""
return datapath(xml_data_path / "doc_ch_utf.xml")

Expand All @@ -50,7 +50,7 @@ def xml_baby_names(xml_data_path, datapath):
Examples
--------
>>> def test_read_xml(xml_baby_names):
... read_xml(xml_baby_names)
... pd.read_xml(xml_baby_names)
"""
return datapath(xml_data_path / "baby_names.xml")

Expand All @@ -63,7 +63,7 @@ def kml_cta_rail_lines(xml_data_path, datapath):
Examples
--------
>>> def test_read_xml(kml_cta_rail_lines):
... read_xml(
... pd.read_xml(
... kml_cta_rail_lines,
... xpath=".//k:Placemark",
... namespaces={"k": "http://www.opengis.net/kml/2.2"},
Expand All @@ -80,7 +80,7 @@ def xsl_flatten_doc(xml_data_path, datapath):

Examples
--------
>>> def test_read_xsl(xsl_flatten_doc):
>>> def test_read_xsl(xsl_flatten_doc, mode):
... with open(
... xsl_flatten_doc, mode, encoding="utf-8" if mode == "r" else None
... ) as f:
Expand All @@ -96,7 +96,7 @@ def xsl_row_field_output(xml_data_path, datapath):

Examples
--------
>>> def test_read_xsl(xsl_row_field_output):
>>> def test_read_xsl(xsl_row_field_output, mode):
... with open(
... xsl_row_field_output, mode, encoding="utf-8" if mode == "r" else None
... ) as f:
Expand Down