From 4cd73b512e0a59b4a19d65084cf8740d7c9f12e0 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 15:21:21 +0200 Subject: [PATCH 1/8] DOC: fix indentation error in nth docstring --- pandas/core/groupby.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index cc639b562dab8..f6915e962c049 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -1197,7 +1197,8 @@ def nth(self, n, dropna=None): 1 4 5 6 - # NaNs denote group exhausted when using dropna + NaNs denote group exhausted when using dropna + >>> g.nth(1, dropna='any') B A From fbed6a47b613a32f0b8753d086aee92656a3a472 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 16:53:37 +0200 Subject: [PATCH 2/8] DOC: suppress warning for deprecated matplotlib style --- doc/source/options.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/options.rst b/doc/source/options.rst index d761d827006be..25f03df4040a3 100644 --- a/doc/source/options.rst +++ b/doc/source/options.rst @@ -71,6 +71,7 @@ with no argument ``describe_option`` will print out the descriptions for all ava .. ipython:: python :suppress: + :okwarning: pd.reset_option("all") From 6b6994dcc7cc9b6f4a39d128f12bff36380dd3d8 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 17:06:43 +0200 Subject: [PATCH 3/8] DOC: fix code block directive --- doc/source/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/io.rst b/doc/source/io.rst index b011072d8c3fb..e9bd029b30537 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4789,7 +4789,7 @@ Reading Space on disk (in bytes) -.. code-block:: +.. code-block:: none 25843712 Apr 8 14:11 test.sql 24007368 Apr 8 14:11 test_fixed.hdf From aae23b0b6dea44305fbfede56aee44f31b915656 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 17:09:44 +0200 Subject: [PATCH 4/8] DOC: fix duplicate explicit target name --- doc/source/r_interface.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst index efe403c85f330..7e72231c21b15 100644 --- a/doc/source/r_interface.rst +++ b/doc/source/r_interface.rst @@ -17,7 +17,7 @@ rpy2 / R interface In v0.16.0, the ``pandas.rpy`` interface has been **deprecated and will be removed in a future version**. Similar functionality can be accessed - through the `rpy2 `_ project. + through the `rpy2 `__ project. See the :ref:`updating ` section for a guide to port your code from the ``pandas.rpy`` to ``rpy2`` functions. @@ -73,7 +73,7 @@ The ``convert_to_r_matrix`` function can be replaced by the normal comparison to the ones in pandas, please report this at the `issue tracker `_. -See also the documentation of the `rpy2 `_ project. +See also the documentation of the `rpy2 `__ project. R interface with rpy2 From eca849babfc75c49762dd1faf7a2ab0c164fbfb9 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 17:10:41 +0200 Subject: [PATCH 5/8] DOC: fix malformed hyperlink target --- doc/source/whatsnew/v0.18.1.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v0.18.1.txt b/doc/source/whatsnew/v0.18.1.txt index 51982c42499ff..ba14ac51012c7 100644 --- a/doc/source/whatsnew/v0.18.1.txt +++ b/doc/source/whatsnew/v0.18.1.txt @@ -374,7 +374,7 @@ New Behavior: df.groupby('c', sort=False).nth(1) -.. _whatsnew_0181.numpy_compatibility +.. _whatsnew_0181.numpy_compatibility: numpy function compatibility ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ From 23827e4a377bc4352038e021a223a820cf33a069 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 17:18:39 +0200 Subject: [PATCH 6/8] DOC: use valid header symbols --- doc/source/whatsnew/v0.18.0.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/whatsnew/v0.18.0.txt b/doc/source/whatsnew/v0.18.0.txt index 93c76bc80684f..7418cd0e6baa3 100644 --- a/doc/source/whatsnew/v0.18.0.txt +++ b/doc/source/whatsnew/v0.18.0.txt @@ -764,7 +764,7 @@ yields a ``Resampler``. r Downsampling -'''''''''''' +"""""""""""" You can then use this object to perform operations. These are downsampling operations (going from a higher frequency to a lower one). @@ -796,7 +796,7 @@ These accessors can of course, be combined r[['A','B']].agg(['mean','sum']) Upsampling -'''''''''' +"""""""""" .. currentmodule:: pandas.tseries.resample @@ -842,7 +842,7 @@ New API In the new API, you can either downsample OR upsample. The prior implementation would allow you to pass an aggregator function (like ``mean``) even though you were upsampling, providing a bit of confusion. Previous API will work but with deprecations -'''''''''''''''''''''''''''''''''''''''''''' +"""""""""""""""""""""""""""""""""""""""""""" .. warning:: From 9c714ffaff6f22dfaad68989f4bfc36d9d4a381e Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 17:25:14 +0200 Subject: [PATCH 7/8] DOC: fix interlinking to scipy --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 6ceeee4ad6afb..99126527759f6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -292,7 +292,7 @@ 'matplotlib': ('http://matplotlib.org/', None), 'python': ('http://docs.python.org/3', None), 'numpy': ('http://docs.scipy.org/doc/numpy', None), - 'scipy': ('http://docs.scipy.org/doc/scipy', None), + 'scipy': ('http://docs.scipy.org/doc/scipy/reference', None), 'py': ('http://pylib.readthedocs.org/en/latest/', None) } import glob From 1da336b3d25385aeee58f3e303487b16e541b1da Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 23 Jun 2016 17:27:41 +0200 Subject: [PATCH 8/8] DOC: fix link to python docs on range --- doc/source/advanced.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index e50e792201d26..0c843dd39b56f 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -729,7 +729,7 @@ Int64Index and RangeIndex Prior to 0.18.0, the ``Int64Index`` would provide the default index for all ``NDFrame`` objects. ``RangeIndex`` is a sub-class of ``Int64Index`` added in version 0.18.0, now providing the default index for all ``NDFrame`` objects. -``RangeIndex`` is an optimized version of ``Int64Index`` that can represent a monotonic ordered set. These are analagous to python :ref:`range types `. +``RangeIndex`` is an optimized version of ``Int64Index`` that can represent a monotonic ordered set. These are analagous to python `range types `__. .. _indexing.float64index: