Skip to content

Commit 9266f0d

Browse files
DOC: fixes empty boxes + too wide:
- excel: code snippets too wide - visualisation: for some reason now empty boxes when ipython code blocks with plt.figure were suppressed, but not when removing the semicolon
1 parent 1eab1a2 commit 9266f0d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/source/io.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1878,14 +1878,14 @@ to be parsed.
18781878

18791879
.. code-block:: python
18801880
1881-
read_excel('path_to_file.xls', 'Sheet1', parse_cols=2, index_col=None, na_values=['NA'])
1881+
read_excel('path_to_file.xls', 'Sheet1', parse_cols=2)
18821882
18831883
If `parse_cols` is a list of integers, then it is assumed to be the file column
18841884
indices to be parsed.
18851885

18861886
.. code-block:: python
18871887
1888-
read_excel('path_to_file.xls', 'Sheet1', parse_cols=[0, 2, 3], index_col=None, na_values=['NA'])
1888+
read_excel('path_to_file.xls', 'Sheet1', parse_cols=[0, 2, 3])
18891889
18901890
To write a DataFrame object to a sheet of an Excel file, you can use the
18911891
``to_excel`` instance method. The arguments are largely the same as ``to_csv``

doc/source/visualization.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ bar plot:
261261
.. ipython:: python
262262
:suppress:
263263
264-
plt.figure();
264+
plt.figure()
265265
266266
.. ipython:: python
267267
@@ -275,7 +275,7 @@ To produce a stacked bar plot, pass ``stacked=True``:
275275
.. ipython:: python
276276
:suppress:
277277
278-
plt.figure();
278+
plt.figure()
279279
280280
.. ipython:: python
281281
@@ -287,7 +287,7 @@ To get horizontal bar plots, pass ``kind='barh'``:
287287
.. ipython:: python
288288
:suppress:
289289
290-
plt.figure();
290+
plt.figure()
291291
292292
.. ipython:: python
293293
@@ -320,7 +320,7 @@ New since 0.10.0, the ``by`` keyword can be specified to plot grouped histograms
320320
.. ipython:: python
321321
:suppress:
322322
323-
plt.figure();
323+
plt.figure()
324324
325325
.. ipython:: python
326326
@@ -434,12 +434,12 @@ Scatter plot matrix
434434
.. _visualization.kde:
435435

436436
*New in 0.8.0* You can create density plots using the Series/DataFrame.plot and
437-
setting `kind='kde'`:
437+
setting ``kind='kde'``:
438438

439439
.. ipython:: python
440440
:suppress:
441441
442-
plt.figure();
442+
plt.figure()
443443
444444
.. ipython:: python
445445
@@ -460,7 +460,7 @@ too dense to plot each point individually.
460460
.. ipython:: python
461461
:suppress:
462462
463-
plt.figure();
463+
plt.figure()
464464
465465
.. ipython:: python
466466
@@ -486,7 +486,7 @@ given by column ``z``. The bins are aggregated with numpy's ``max`` function.
486486
.. ipython:: python
487487
:suppress:
488488
489-
plt.figure();
489+
plt.figure()
490490
491491
.. ipython:: python
492492

0 commit comments

Comments
 (0)