Skip to content

Commit ece2f7b

Browse files
committed
Remove key argument skip_blank_lines and pass it implicitly
1 parent 461ebf0 commit ece2f7b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

pandas/io/html.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ def read_html(
10301030
extract_links: Literal[None, "header", "footer", "body", "all"] = None,
10311031
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
10321032
storage_options: StorageOptions = None,
1033-
skip_blank_lines: bool = True,
10341033
) -> list[DataFrame]:
10351034
r"""
10361035
Read HTML tables into a ``list`` of ``DataFrame`` objects.
@@ -1150,9 +1149,6 @@ def read_html(
11501149
11511150
.. versionadded:: 2.1.0
11521151
1153-
skip_blank_lines : bool, default True
1154-
Whether lines containing only spaces should be skipped or not.
1155-
11561152
Returns
11571153
-------
11581154
dfs
@@ -1228,5 +1224,5 @@ def read_html(
12281224
extract_links=extract_links,
12291225
dtype_backend=dtype_backend,
12301226
storage_options=storage_options,
1231-
skip_blank_lines=skip_blank_lines,
1227+
skip_blank_lines=False,
12321228
)

pandas/tests/io/test_html.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,8 +1261,7 @@ def test_preserve_rows_with_spaces(self, flavor_read_html):
12611261
</tr>
12621262
</table>
12631263
"""
1264-
),
1265-
skip_blank_lines=False,
1264+
)
12661265
)[0]
12671266
expected = DataFrame(data=[["a", "b"], [" ", " "]], columns=["A", "B"])
12681267

@@ -1278,8 +1277,7 @@ def test_preserve_table_with_just_spaces(self, flavor_read_html):
12781277
</tr>
12791278
</table>
12801279
"""
1281-
),
1282-
skip_blank_lines=False,
1280+
)
12831281
)[0]
12841282

12851283
expected = DataFrame(data=[" "])

0 commit comments

Comments
 (0)