File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1073,7 +1073,7 @@ def read_xml(
1073
1073
... </row>
1074
1074
... </data>'''
1075
1075
1076
- >>> df = pd.read_xml(StringIO(xml))
1076
+ >>> df = pd.read_xml(io. StringIO(xml))
1077
1077
>>> df
1078
1078
shape degrees sides
1079
1079
0 square 360 4.0
@@ -1087,7 +1087,7 @@ def read_xml(
1087
1087
... <row shape="triangle" degrees="180" sides="3.0"/>
1088
1088
... </data>'''
1089
1089
1090
- >>> df = pd.read_xml(StringIO(xml), xpath=".//row")
1090
+ >>> df = pd.read_xml(io. StringIO(xml), xpath=".//row")
1091
1091
>>> df
1092
1092
shape degrees sides
1093
1093
0 square 360 4.0
@@ -1113,7 +1113,7 @@ def read_xml(
1113
1113
... </doc:row>
1114
1114
... </doc:data>'''
1115
1115
1116
- >>> df = pd.read_xml(StringIO(xml),
1116
+ >>> df = pd.read_xml(io. StringIO(xml),
1117
1117
... xpath="//doc:row",
1118
1118
... namespaces={{"doc": "https://example.com"}})
1119
1119
>>> df
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def test_literal_xml_deprecation():
257
257
)
258
258
259
259
with tm .assert_produces_warning (FutureWarning , match = msg ):
260
- read_xml (xml_default_nmsp , parser = "etree" )
260
+ read_xml (xml_default_nmsp )
261
261
262
262
263
263
@pytest .fixture (params = ["rb" , "r" ])
You can’t perform that action at this time.
0 commit comments