Skip to content

Commit eeb42e9

Browse files
datapythonistaPingviinituutti
authored andcommitted
DOC: Fixing several doc warnings (pandas-dev#24430)
1 parent e66bb18 commit eeb42e9

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

doc/source/basics.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,7 @@ To evaluate single-element pandas objects in a boolean context, use the method
374374
375375
>>> df and df2
376376
377-
These will both raise errors, as you are trying to compare multiple values.
378-
379-
.. code-block:: python-traceback
377+
These will both raise errors, as you are trying to compare multiple values.::
380378

381379
ValueError: The truth value of an array is ambiguous. Use a.empty, a.any() or a.all().
382380

doc/source/tutorials.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ Video Tutorials
8888
`GitHub repo <https://github.com/TomAugspurger/pydata-chi-h2t>`__
8989
* `Data analysis in Python with pandas <https://www.youtube.com/playlist?list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y>`_
9090
(2016-2018)
91-
`GitHub repo <https://github.com/justmarkham/pandas-videos>`_ and
92-
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb>`_
91+
`GitHub repo <https://github.com/justmarkham/pandas-videos>`__ and
92+
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb>`__
9393
* `Best practices with pandas <https://www.youtube.com/playlist?list=PL5-da3qGB5IBITZj_dYSFqnd_15JgqwA6>`_
9494
(2018)
95-
`GitHub repo <https://github.com/justmarkham/pycon-2018-tutorial>`_ and
96-
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pycon-2018-tutorial/blob/master/tutorial.ipynb>`_
95+
`GitHub repo <https://github.com/justmarkham/pycon-2018-tutorial>`__ and
96+
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pycon-2018-tutorial/blob/master/tutorial.ipynb>`__
9797

9898

9999
Various Tutorials

doc/source/whatsnew/v0.13.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ Enhancements
690690

691691
.. ipython:: python
692692
693-
ser = Series([1, 3, np.nan, np.nan, np.nan, 11])
693+
ser = pd.Series([1, 3, np.nan, np.nan, np.nan, 11])
694694
ser.interpolate(limit=2)
695695
696696
- Added ``wide_to_long`` panel data convenience function. See :ref:`the docs<reshaping.melt>`.
@@ -706,7 +706,7 @@ Enhancements
706706
})
707707
df["id"] = df.index
708708
df
709-
wide_to_long(df, ["A", "B"], i="id", j="year")
709+
pd.wide_to_long(df, ["A", "B"], i="id", j="year")
710710
711711
.. _scipy: http://www.scipy.org
712712
.. _documentation: http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation

doc/source/whatsnew/v0.13.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Output Formatting Enhancements
8888

8989
Previously output might look like:
9090

91-
.. oode-block:: text
91+
.. code-block:: text
9292
9393
age today diff
9494
0 2001-01-01 00:00:00 2013-04-19 00:00:00 4491 days, 00:00:00

doc/source/whatsnew/v0.14.1.rst

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Enhancements
122122
pytz timezones across pandas. (:issue:`4688`)
123123

124124
.. ipython:: python
125+
125126
rng = pd.date_range('3/6/2012 00:00', periods=10, freq='D',
126127
tz='dateutil/Europe/London')
127128
rng.tz

doc/source/whatsnew/v0.15.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ Timezone handling improvements
316316
previously this resulted in ``Exception`` or ``TypeError`` (:issue:`7812`)
317317

318318
.. ipython:: python
319+
:okwarning:
319320
320321
ts = Timestamp('2014-08-01 09:00', tz='US/Eastern')
321322
ts

doc/source/whatsnew/v0.20.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ URLs and paths are now inferred using their file extensions. Additionally,
189189
support for bz2 compression in the python 2 C-engine improved (:issue:`14874`).
190190

191191
.. ipython:: python
192+
:okwarning:
192193
193194
url = ('https://github.com/{repo}/raw/{branch}/{path}'
194195
.format(repo='pandas-dev/pandas',

0 commit comments

Comments
 (0)