Skip to content

Commit

Permalink
DOC: Fix F821 error in docstring (#57863)
Browse files Browse the repository at this point in the history
Fix F821 error in docstring

Co-authored-by: Marc Garcia <garcia.marc@gmail.com>
  • Loading branch information
tqa236 and datapythonista authored Mar 19, 2024
1 parent aa3e949 commit b9be19b
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit b9be19b

Please sign in to comment.