Skip to content

DOC: Fixing several doc warnings #24430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions doc/source/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,7 @@ To evaluate single-element pandas objects in a boolean context, use the method

>>> df and df2

These will both raise errors, as you are trying to compare multiple values.

.. code-block:: python-traceback
These will both raise errors, as you are trying to compare multiple values.::

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

Expand Down
8 changes: 4 additions & 4 deletions doc/source/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ Video Tutorials
`GitHub repo <https://github.com/TomAugspurger/pydata-chi-h2t>`__
* `Data analysis in Python with pandas <https://www.youtube.com/playlist?list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y>`_
(2016-2018)
`GitHub repo <https://github.com/justmarkham/pandas-videos>`_ and
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb>`_
`GitHub repo <https://github.com/justmarkham/pandas-videos>`__ and
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb>`__
* `Best practices with pandas <https://www.youtube.com/playlist?list=PL5-da3qGB5IBITZj_dYSFqnd_15JgqwA6>`_
(2018)
`GitHub repo <https://github.com/justmarkham/pycon-2018-tutorial>`_ and
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pycon-2018-tutorial/blob/master/tutorial.ipynb>`_
`GitHub repo <https://github.com/justmarkham/pycon-2018-tutorial>`__ and
`Jupyter Notebook <http://nbviewer.jupyter.org/github/justmarkham/pycon-2018-tutorial/blob/master/tutorial.ipynb>`__


Various Tutorials
Expand Down
4 changes: 2 additions & 2 deletions doc/source/whatsnew/v0.13.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ Enhancements

.. ipython:: python
ser = Series([1, 3, np.nan, np.nan, np.nan, 11])
ser = pd.Series([1, 3, np.nan, np.nan, np.nan, 11])
ser.interpolate(limit=2)
- Added ``wide_to_long`` panel data convenience function. See :ref:`the docs<reshaping.melt>`.
Expand All @@ -706,7 +706,7 @@ Enhancements
})
df["id"] = df.index
df
wide_to_long(df, ["A", "B"], i="id", j="year")
pd.wide_to_long(df, ["A", "B"], i="id", j="year")
.. _scipy: http://www.scipy.org
.. _documentation: http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.13.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Output Formatting Enhancements

Previously output might look like:

.. oode-block:: text
.. code-block:: text

age today diff
0 2001-01-01 00:00:00 2013-04-19 00:00:00 4491 days, 00:00:00
Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.14.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Enhancements
pytz timezones across pandas. (:issue:`4688`)

.. ipython:: python

rng = pd.date_range('3/6/2012 00:00', periods=10, freq='D',
tz='dateutil/Europe/London')
rng.tz
Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.15.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ Timezone handling improvements
previously this resulted in ``Exception`` or ``TypeError`` (:issue:`7812`)

.. ipython:: python
:okwarning:

ts = Timestamp('2014-08-01 09:00', tz='US/Eastern')
ts
Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.20.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ URLs and paths are now inferred using their file extensions. Additionally,
support for bz2 compression in the python 2 C-engine improved (:issue:`14874`).

.. ipython:: python
:okwarning:
url = ('https://github.com/{repo}/raw/{branch}/{path}'
.format(repo='pandas-dev/pandas',
Expand Down