Skip to content

Commit 90bbd6a

Browse files
committed
Merge pull request #5447 from jorisvandenbossche/docs-to_latex-error
DOC: fix build error in to_latex and release notes
2 parents b139288 + c2f9601 commit 90bbd6a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

doc/source/release.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ API Changes
386386
division.
387387

388388
.. code-block:: python
389+
389390
In [3]: arr = np.array([1, 2, 3, 4])
390391
391392
In [4]: arr2 = np.array([5, 3, 2, 1])

doc/source/v0.13.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ API changes
6060
division.
6161

6262
.. code-block:: python
63+
6364
In [3]: arr = np.array([1, 2, 3, 4])
6465

6566
In [4]: arr2 = np.array([5, 3, 2, 1])

pandas/core/frame.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,16 +1295,16 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
12951295
justify=None, force_unicode=None, bold_rows=True,
12961296
classes=None, escape=True):
12971297
"""
1298-
to_html-specific options
1298+
Render a DataFrame as an HTML table.
1299+
1300+
`to_html`-specific options:
12991301
13001302
bold_rows : boolean, default True
13011303
Make the row labels bold in the output
13021304
classes : str or list or tuple, default None
13031305
CSS class(es) to apply to the resulting html table
13041306
escape : boolean, default True
13051307
Convert the characters <, >, and & to HTML-safe sequences.
1306-
1307-
Render a DataFrame as an HTML table.
13081308
"""
13091309

13101310
if force_unicode is not None: # pragma: no cover
@@ -1337,12 +1337,13 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
13371337
float_format=None, sparsify=None, index_names=True,
13381338
bold_rows=True, force_unicode=None):
13391339
"""
1340-
to_latex-specific options
1341-
bold_rows : boolean, default True
1342-
Make the row labels bold in the output
1343-
13441340
Render a DataFrame to a tabular environment table.
13451341
You can splice this into a LaTeX document.
1342+
1343+
`to_latex`-specific options:
1344+
1345+
bold_rows : boolean, default True
1346+
Make the row labels bold in the output
13461347
"""
13471348

13481349
if force_unicode is not None: # pragma: no cover

0 commit comments

Comments
 (0)