Skip to content

Commit 8c1f550

Browse files
Merge pull request #7185 from jorisvandenbossche/doc-fixes3
DOC: some doc build fixes
2 parents 12cec84 + 573a06c commit 8c1f550

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

doc/source/ecosystem.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Statistics and Machine Learning
2424
-------------------------------
2525

2626
`Statsmodels <http://statsmodels.sourceforge.net>`__
27-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2828

2929
Statsmodels is the prominent python "statistics and econometrics library" and it has
3030
a long-standing special relationship with pandas. Statsmodels provides powerful statistics,
@@ -44,14 +44,14 @@ Visualization
4444
-------------
4545

4646
`Vincent <https://github.com/wrobstory/vincent>`__
47-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4848

4949
The `Vincent <https://github.com/wrobstory/vincent>`__ project leverages `Vega <https://github.com/trifacta/vega>`__
5050
(that in turn, leverages `d3 <http://d3js.org/>`__) to create plots . It has great support
5151
for pandas data objects.
5252

5353
`yhat/ggplot <https://github.com/yhat/ggplot>`__
54-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5555

5656
Hadley Wickham's `ggplot2 <http://ggplot2.org/>`__ is a foundational exploratory visualization package for the R language.
5757
Based on `"The Grammer of Graphics" <http://www.cs.uic.edu/~wilkinson/TheGrammarOfGraphics/GOG.html>`__ it
@@ -71,7 +71,7 @@ and `matplotlib <http://matplotlib.org>`__ to provide easy plotting of data whic
7171
more advanced types of plots then those offered by pandas.
7272

7373
`Bokeh <http://bokeh.pydata.org>`__
74-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7575

7676
Bokeh is a Python interactive visualization library for large datasets that natively uses
7777
the latest web technologies. Its goal is to provide elegant, concise construction of novel

doc/source/groupby.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,9 +926,10 @@ the values in column 1 where the group is "B" are 3 higher on average.
926926
We can easily visualize this with a boxplot:
927927

928928
.. ipython:: python
929+
:okwarning:
929930
930931
@savefig groupby_boxplot.png
931-
bp = df.groupby('g').boxplot()
932+
df.groupby('g').boxplot()
932933
933934
The result of calling ``boxplot`` is a dictionary whose keys are the values
934935
of our grouping column ``g`` ("A" and "B"). The values of the resulting dictionary

doc/source/release.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Bug Fixes
512512
- :func:`read_fwf` treats ``None`` in ``colspec`` like regular python slices. It now reads from the beginning
513513
or until the end of the line when ``colspec`` contains a ``None`` (previously raised a ``TypeError``)
514514
- Bug in cache coherence with chained indexing and slicing; add ``_is_view`` property to ``NDFrame`` to correctly predict
515-
views; mark ``is_copy`` on ``xs` only if its an actual copy (and not a view) (:issue:`7084`)
515+
views; mark ``is_copy`` on ``xs`` only if its an actual copy (and not a view) (:issue:`7084`)
516516
- Bug in DatetimeIndex creation from string ndarray with ``dayfirst=True`` (:issue:`5917`)
517517
- Bug in ``MultiIndex.from_arrays`` created from ``DatetimeIndex`` doesn't preserve ``freq`` and ``tz`` (:issue:`7090`)
518518
- Bug in ``unstack`` raises ``ValueError`` when ``MultiIndex`` contains ``PeriodIndex`` (:issue:`4342`)

doc/source/visualization.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ You can plot one column versus another using the `x` and `y` keywords in
108108

109109
For more formatting and sytling options, see :ref:`below <visualization.formatting>`.
110110

111+
.. ipython:: python
112+
:suppress:
113+
114+
plt.close('all')
111115
112116
.. _visualization.other:
113117

@@ -255,6 +259,7 @@ a uniform random variable on [0,1).
255259
np.random.seed(123456)
256260
257261
.. ipython:: python
262+
:okwarning:
258263
259264
df = DataFrame(rand(10,5))
260265
plt.figure();
@@ -271,6 +276,7 @@ groupings. For instance,
271276
np.random.seed(123456)
272277
273278
.. ipython:: python
279+
:okwarning:
274280
275281
df = DataFrame(rand(10,2), columns=['Col1', 'Col2'] )
276282
df['X'] = Series(['A','A','A','A','A','B','B','B','B','B'])
@@ -289,6 +295,7 @@ columns:
289295
np.random.seed(123456)
290296
291297
.. ipython:: python
298+
:okwarning:
292299
293300
df = DataFrame(rand(10,3), columns=['Col1', 'Col2', 'Col3'])
294301
df['X'] = Series(['A','A','A','A','A','B','B','B','B','B'])
@@ -325,6 +332,7 @@ facet for each key, with each facet containing a box for each column of the
325332
DataFrame.
326333

327334
.. ipython:: python
335+
:okwarning:
328336
329337
np.random.seed(1234)
330338
df_box = DataFrame(np.random.randn(50, 2))
@@ -337,6 +345,7 @@ DataFrame.
337345
Compare to:
338346

339347
.. ipython:: python
348+
:okwarning:
340349
341350
@savefig groupby_boxplot_vis.png
342351
bp = df_box.groupby('g').boxplot()
@@ -517,6 +526,11 @@ If you pass values whose sum total is less than 1.0, matplotlib draws a semicirc
517526
518527
See the `matplotlib pie documenation <http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.pie>`__ for more.
519528

529+
.. ipython:: python
530+
:suppress:
531+
532+
plt.close('all')
533+
520534
.. _visualization.tools:
521535

522536
Plotting Tools

0 commit comments

Comments
 (0)