Skip to content

Commit

Permalink
Documentation: typo fixes in MultiIndex / Advanced Indexing (#22179)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored and WillAyd committed Aug 2, 2018
1 parent 7725fa0 commit 6753068
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ See the :ref:`Indexing and Selecting Data <indexing>` for general indexing docum

.. warning::

Whether a copy or a reference is returned for a setting operation, may
Whether a copy or a reference is returned for a setting operation may
depend on the context. This is sometimes called ``chained assignment`` and
should be avoided. See :ref:`Returning a View versus Copy
<indexing.view_versus_copy>`.
Expand Down Expand Up @@ -172,7 +172,7 @@ Defined Levels
~~~~~~~~~~~~~~

The repr of a ``MultiIndex`` shows all the defined levels of an index, even
if the they are not actually used. When slicing an index, you may notice this.
if they are not actually used. When slicing an index, you may notice this.
For example:

.. ipython:: python
Expand Down Expand Up @@ -379,7 +379,7 @@ slicers on a single axis.
dfmi.loc(axis=0)[:, :, ['C1', 'C3']]
Furthermore you can *set* the values using the following methods.
Furthermore, you can *set* the values using the following methods.

.. ipython:: python
Expand Down Expand Up @@ -559,7 +559,7 @@ return a copy of the data rather than a view:
.. _advanced.unsorted:

Furthermore if you try to index something that is not fully lexsorted, this can raise:
Furthermore, if you try to index something that is not fully lexsorted, this can raise:

.. code-block:: ipython
Expand Down Expand Up @@ -659,7 +659,7 @@ Index Types

We have discussed ``MultiIndex`` in the previous sections pretty extensively. ``DatetimeIndex`` and ``PeriodIndex``
are shown :ref:`here <timeseries.overview>`, and information about
`TimedeltaIndex`` is found :ref:`here <timedeltas.timedeltas>`.
``TimedeltaIndex`` is found :ref:`here <timedeltas.timedeltas>`.

In the following sub-sections we will highlight some other index types.

Expand Down Expand Up @@ -835,8 +835,8 @@ In non-float indexes, slicing using floats will raise a ``TypeError``.
Here is a typical use-case for using this type of indexing. Imagine that you have a somewhat
irregular timedelta-like indexing scheme, but the data is recorded as floats. This could for
example be millisecond offsets.
irregular timedelta-like indexing scheme, but the data is recorded as floats. This could, for
example, be millisecond offsets.
.. ipython:: python
Expand Down

0 comments on commit 6753068

Please sign in to comment.