You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use :class:`pandas.IndexSlice` to facilitate a more natural syntax using ``:``, rather than using ``slice(None)``.
319
+
320
+
You can use :class:`pandas.IndexSlice` to facilitate a more natural syntax
321
+
using ``:``, rather than using ``slice(None)``.
320
322
321
323
.. ipython:: python
322
324
@@ -557,7 +559,7 @@ Take Methods
557
559
558
560
.. _advanced.take:
559
561
560
-
Similar to numpy ndarrays, pandas Index, Series, and DataFrame also provides
562
+
Similar to NumPy ndarrays, pandas Index, Series, and DataFrame also provides
561
563
the ``take`` method that retrieves elements along a given axis at the given
562
564
indices. The given indices must be either a list or an ndarray of integer
563
565
index positions. ``take`` will also accept negative integers as relative positions to the end of the object.
@@ -729,7 +731,7 @@ This is an Immutable array implementing an ordered, sliceable set.
729
731
Prior to 0.18.0, the ``Int64Index`` would provide the default index forall``NDFrame`` objects.
730
732
731
733
``RangeIndex``is a sub-class of ``Int64Index`` added in version 0.18.0, now providing the default index forall``NDFrame`` objects.
732
-
``RangeIndex``is an optimized version of ``Int64Index`` that can represent a monotonic ordered set. These are analogous to python`range types <https://docs.python.org/3/library/stdtypes.html#typesseq-range>`__.
734
+
``RangeIndex``is an optimized version of ``Int64Index`` that can represent a monotonic ordered set. These are analogous to Python`range types <https://docs.python.org/3/library/stdtypes.html#typesseq-range>`__.
733
735
734
736
.. _indexing.float64index:
735
737
@@ -763,7 +765,6 @@ The only positional indexing is via ``iloc``.
763
765
sf.iloc[3]
764
766
765
767
A scalar index that isnot found will raise a ``KeyError``.
766
-
767
768
Slicing is primarily on the values of the index when using ``[],ix,loc``, and
768
769
**always** positional when using ``iloc``. The exception is when the sliceis
769
770
boolean, in which case it will always be positional.
0 commit comments