Skip to content

Commit a41ae95

Browse files
committed
review of @datapythonista for file 10min.rst
* suppress not useful output * split multiple statements on one line Signed-off-by: Fabian Haase <[email protected]>
1 parent 13f4c03 commit a41ae95

File tree

2 files changed

+83
-78
lines changed

2 files changed

+83
-78
lines changed

doc/source/10min.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ You can see more complex recipes in the :ref:`Cookbook<cookbook>`.
1313
Customarily, we import as follows:
1414

1515
.. ipython:: python
16+
:flake8-add-ignore: E703, # statement ends with a semicolon [suppress output]
1617
1718
import numpy as np
1819
import pandas as pd
@@ -709,7 +710,7 @@ See the :ref:`Plotting <visualization>` docs.
709710
ts = ts.cumsum()
710711
711712
@savefig series_plot_basic.png
712-
ts.plot()
713+
ts.plot();
713714
714715
On a DataFrame, the :meth:`~DataFrame.plot` method is a convenience to plot all
715716
of the columns with labels:
@@ -720,8 +721,9 @@ of the columns with labels:
720721
columns=['A', 'B', 'C', 'D'])
721722
df = df.cumsum()
722723
724+
df.plot();
723725
@savefig frame_plot_basic.png
724-
plt.figure(); df.plot(); plt.legend(loc='best') # noqa: E702
726+
plt.legend(loc='best');
725727
726728
Getting Data In/Out
727729
-------------------

0 commit comments

Comments
 (0)