@@ -11,7 +11,7 @@ Highlights include:
1111
1212- MultIndexing Using Slicers
1313- Joining a singly-indexed DataFrame with a multi-indexed DataFrame
14- - More flexible groupby specifications
14+ - More consistency in groupby results and more flexible groupby specifications
1515
1616API changes
1717~~~~~~~~~~~
@@ -66,7 +66,8 @@ These are out-of-bounds selections
6666 s.index.year
6767
6868- More consistent behaviour for some groupby methods:
69- - groupby ``head`` and ``tail`` now act more like ``filter`` rather than an aggregation:
69+
70+ groupby ``head`` and ``tail`` now act more like ``filter`` rather than an aggregation:
7071
7172 .. ipython:: python
7273
@@ -76,14 +77,14 @@ These are out-of-bounds selections
7677
7778 g.apply(lambda x: x.head(1)) # used to simply fall-through
7879
79- - groupby head and tail respect column selection:
80+ groupby head and tail respect column selection:
8081
8182 .. ipython:: python
8283
8384 g[['B']].head(1)
8485
85- - groupby ``nth`` now filters by default, with optional dropna argument to ignore
86- NaN (to replicate the previous behaviour.), See :ref:`the docs <groupby.nth>`.
86+ groupby ``nth`` now filters by default, with optional dropna argument to ignore
87+ NaN (to replicate the previous behaviour.), See :ref:`the docs <groupby.nth>`.
8788
8889 .. ipython:: python
8990
@@ -101,12 +102,12 @@ These are out-of-bounds selections
101102 (:issue:`5987`). For the :class:`~pandas.DataFrame` methods, two things have
102103 changed
103104
104- - Column names are now given precedence over locals
105- - Local variables must be referred to explicitly. This means that even if
106- you have a local variable that is *not* a column you must still refer to
107- it with the ``'@'`` prefix.
108- - You can have an expression like ``df.query('@a < a')`` with no complaints
109- from ``pandas`` about ambiguity of the name ``a``.
105+ - Column names are now given precedence over locals
106+ - Local variables must be referred to explicitly. This means that even if
107+ you have a local variable that is *not* a column you must still refer to
108+ it with the ``'@'`` prefix.
109+ - You can have an expression like ``df.query('@a < a')`` with no complaints
110+ from ``pandas`` about ambiguity of the name ``a``.
110111
111112- The top-level :func:`pandas.eval` function does not allow you use the
112113 ``'@'`` prefix and provides you with an error message telling you so.
@@ -172,8 +173,8 @@ These are out-of-bounds selections
172173 # New output, 4-level MultiIndex
173174 df_multi.set_index([df_multi.index, df_multi.index])
174175
175- - The :func:`pivot_table`/:meth:`DataFrame.pivot_table` and :func:`crosstab` functions
176- now take arguments ``index`` and ``columns`` instead of ``rows`` and ``cols``. A
176+ - The :func:`pivot_table`/:meth:`DataFrame.pivot_table` and :func:`crosstab` functions
177+ now take arguments ``index`` and ``columns`` instead of ``rows`` and ``cols``. A
177178 ``FutureWarning`` is raised to alert that the old ``rows`` and ``cols`` arguments
178179 will not be supported in a future release (:issue:`5505`)
179180
0 commit comments