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
352
+
You can use :class:`pandas.IndexSlice` to facilitate a more natural syntax
321
353
using ``:``, rather than using ``slice(None)``.
322
354
323
355
.. ipython:: python
@@ -626,7 +658,7 @@ Index Types
626
658
-----------
627
659
628
660
We have discussed ``MultiIndex`` in the previous sections pretty extensively. ``DatetimeIndex`` and ``PeriodIndex``
629
-
are shown :ref:`here <timeseries.overview>`, and information about
661
+
are shown :ref:`here <timeseries.overview>`, and information about
630
662
`TimedeltaIndex`` is found :ref:`here <timedeltas.timedeltas>`.
631
663
632
664
In the following sub-sections we will highlight some other index types.
@@ -671,9 +703,9 @@ The ``CategoricalIndex`` is **preserved** after indexing:
671
703
672
704
df2.loc['a'].index
673
705
674
-
Sorting the index will sort by the order of the categories (Recall that we
675
-
created the index with ``CategoricalDtype(list('cab'))``, so the sorted
676
-
order is ``cab``.).
706
+
Sorting the index will sort by the order of the categories (recall that we
707
+
created the index with ``CategoricalDtype(list('cab'))``, so the sorted
708
+
order is ``cab``).
677
709
678
710
.. ipython:: python
679
711
@@ -726,7 +758,7 @@ Int64Index and RangeIndex
726
758
727
759
Indexing on an integer-based Index with floats has been clarified in0.18.0, for a summary of the changes, see :ref:`here <whatsnew_0180.float_indexers>`.
728
760
729
-
``Int64Index``is a fundamental basic index in pandas.
761
+
``Int64Index``is a fundamental basic index in pandas.
730
762
This is an Immutable array implementing an ordered, sliceable set.
731
763
Prior to 0.18.0, the ``Int64Index`` would provide the default index forall``NDFrame`` objects.
732
764
@@ -765,7 +797,7 @@ The only positional indexing is via ``iloc``.
765
797
sf.iloc[3]
766
798
767
799
A scalar index that isnot found will raise a ``KeyError``.
768
-
Slicing is primarily on the values of the index when using ``[],ix,loc``, and
800
+
Slicing is primarily on the values of the index when using ``[],ix,loc``, and
769
801
**always** positional when using ``iloc``. The exception is when the sliceis
770
802
boolean, in which case it will always be positional.
Copy file name to clipboardExpand all lines: doc/source/tutorials.rst
+35-16Lines changed: 35 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -9,52 +9,52 @@ This is a guide to many pandas tutorials, geared mainly for new users.
9
9
Internal Guides
10
10
---------------
11
11
12
-
pandas own :ref:`10 Minutes to pandas<10min>`
12
+
pandas' own :ref:`10 Minutes to pandas<10min>`.
13
13
14
-
More complex recipes are in the :ref:`Cookbook<cookbook>`
14
+
More complex recipes are in the :ref:`Cookbook<cookbook>`.
15
15
16
16
pandas Cookbook
17
17
---------------
18
18
19
-
The goal of this cookbook (by `Julia Evans <http://jvns.ca>`_) is to
19
+
The goal of this 2015 cookbook (by `Julia Evans <http://jvns.ca>`_) is to
20
20
give you some concrete examples for getting started with pandas. These
21
21
are examples with real-world data, and all the bugs and weirdness that
22
22
entails.
23
23
24
-
Here are links to the v0.1 release. For an up-to-date table of contents, see the `pandas-cookbook GitHub
24
+
Here are links to the v0.2 release. For an up-to-date table of contents, see the `pandas-cookbook GitHub
25
25
repository <http://github.com/jvns/pandas-cookbook>`_. To run the examples in this tutorial, you'll need to
26
26
clone the GitHub repository and get IPython Notebook running.
27
27
See `How to use this cookbook <https://github.com/jvns/pandas-cookbook#how-to-use-this-cookbook>`_.
28
28
29
-
- `A quick tour of the IPython Notebook: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/A%20quick%20tour%20of%20IPython%20Notebook.ipynb>`_
29
+
- `A quick tour of the IPython Notebook: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.2/cookbook/A%20quick%20tour%20of%20IPython%20Notebook.ipynb>`_
30
30
Shows off IPython's awesome tab completion and magic functions.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.23.0.txt
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -323,6 +323,7 @@ Other Enhancements
323
323
324
324
- ``IntervalIndex.astype`` now supports conversions between subtypes when passed an ``IntervalDtype`` (:issue:`19197`)
325
325
- :class:`IntervalIndex` and its associated constructor methods (``from_arrays``, ``from_breaks``, ``from_tuples``) have gained a ``dtype`` parameter (:issue:`19262`)
326
+
- Added :func:`SeriesGroupBy.is_monotonic_increasing` and :func:`SeriesGroupBy.is_monotonic_decreasing` (:issue:`17015`)
326
327
327
328
.. _whatsnew_0230.api_breaking:
328
329
@@ -848,3 +849,5 @@ Other
848
849
^^^^^
849
850
850
851
- Improved error message when attempting to use a Python keyword as an identifier in a ``numexpr`` backed query (:issue:`18221`)
852
+
- Comparisons between :class:`Series` and :class:`Index` would return a ``Series`` with an incorrect name, ignoring the ``Index``'s name attribute (:issue:`19582`)
0 commit comments