Skip to content

Commit cce47f3

Browse files
committed
DOC: documentation
1 parent 157f1ad commit cce47f3

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

doc/source/advanced.rst

+23-2
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,20 @@ faster than fancy indexing.
617617
timeit ser.ix[indexer]
618618
timeit ser.take(indexer)
619619

620+
.. _indexing.index_types:
621+
622+
Index Types
623+
-----------
624+
625+
We have discussed ``MultiIndex`` in the previous sections pretty extensively. ``DatetimeIndex`` and ``PeriodIndex``
626+
are shown :ref:`here <timeseries.overview>`. ``TimedeltaIndex`` are :ref:`here <timedeltas.timedeltas>`.
627+
628+
In the following sub-sections we will highlite some other index types.
629+
620630
.. _indexing.categoricalindex:
621631

622632
CategoricalIndex
623-
----------------
633+
~~~~~~~~~~~~~~~~
624634

625635
.. versionadded:: 0.16.1
626636

@@ -702,10 +712,21 @@ values NOT in the categories, similarly to how you can reindex ANY pandas index.
702712
In [12]: pd.concat([df2, df3]
703713
TypeError: categories must match existing categories when appending
704714
715+
.. _indexing.rangeindex:
716+
717+
Int64Index and RangeIndex
718+
~~~~~~~~~~~~~~~~~~~~~~~~~
719+
720+
``Int64Index`` is a fundamental basic index in *pandas*. This is an Immutable array implementing an ordered, sliceable set.
721+
Prior to 0.18.0, the ``Int64Index`` would provide the default index for all ``NDFrame`` objects.
722+
723+
``RangeIndex`` is a sub-class of ``Int64Index`` added in version 0.18.0, now providing the default index for all ``NDFrame`` objects.
724+
``RangeIndex`` is an optimized version of ``Int64Index`` that can represent a monotonic ordered set. These are analagous to python :ref:`range types <https://docs.python.org/3/library/stdtypes.html#typesseq-range>`.
725+
705726
.. _indexing.float64index:
706727
707728
Float64Index
708-
------------
729+
~~~~~~~~~~~~
709730
710731
.. note::
711732

doc/source/timeseries.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ An example of how holidays and holiday calendars are defined:
10911091
Using this calendar, creating an index or doing offset arithmetic skips weekends
10921092
and holidays (i.e., Memorial Day/July 4th). For example, the below defines
10931093
a custom business day offset using the ``ExampleCalendar``. Like any other offset,
1094-
it can be used to create a ``DatetimeIndex`` or added to ``datetime``
1094+
it can be used to create a ``DatetimeIndex`` or added to ``datetime``
10951095
or ``Timestamp`` objects.
10961096

10971097
.. ipython:: python

0 commit comments

Comments
 (0)