Skip to content

Commit 6bef829

Browse files
committed
BUG: fix for bug 16493
1 parent 426565e commit 6bef829

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v0.20.2.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ I/O
5959
- Bug in pd.read_csv() when comment is passed in space deliminted text files (:issue:`16472`)
6060
- Bug that would force importing of the clipboard routines unnecessarily, potentially causing an import error on startup (:issue:`16288`)
6161
- Bug that raised IndexError HTML-rendering an empty DataFrame (:issue:`15953`)
62-
- Bug where to_html ignored the index_names parameter (:issue:`16493`)
62+
- Bug where ``DataFrame.to_html`` ignored the ``index_names`` parameter (:issue:`16493`)
6363

6464

6565
Plotting

pandas/tests/io/formats/test_to_html.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,6 @@ def test_to_html_notebook_has_no_style(self):
18711871
assert "thead tr:only-child" not in result
18721872

18731873
def test_to_html_with_index_names_false(self):
1874-
df = pd.DataFrame({"A": [1, 2], index=pd.Index(['a', 'b'], name='myindexname'})
1874+
df = pd.DataFrame({"A": [1, 2]}, index=pd.Index(['a', 'b'], name='myindexname'))
18751875
result = df.to_html(index_names=False)
18761876
assert 'myindexname' not in result

0 commit comments

Comments
 (0)