@@ -11,7 +11,7 @@ Highlights include:
11
11
12
12
- MultIndexing Using Slicers
13
13
- 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
15
15
16
16
API changes
17
17
~~~~~~~~~~~
@@ -66,7 +66,8 @@ These are out-of-bounds selections
66
66
s.index.year
67
67
68
68
- 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:
70
71
71
72
.. ipython:: python
72
73
@@ -76,14 +77,14 @@ These are out-of-bounds selections
76
77
77
78
g.apply(lambda x: x.head(1)) # used to simply fall-through
78
79
79
- - groupby head and tail respect column selection:
80
+ groupby head and tail respect column selection:
80
81
81
82
.. ipython:: python
82
83
83
84
g[['B']].head(1)
84
85
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>`.
87
88
88
89
.. ipython:: python
89
90
@@ -101,12 +102,12 @@ These are out-of-bounds selections
101
102
(:issue:`5987`). For the :class:`~pandas.DataFrame` methods, two things have
102
103
changed
103
104
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``.
110
111
111
112
- The top-level :func:`pandas.eval` function does not allow you use the
112
113
``'@'`` prefix and provides you with an error message telling you so.
@@ -172,8 +173,8 @@ These are out-of-bounds selections
172
173
# New output, 4-level MultiIndex
173
174
df_multi.set_index([df_multi.index, df_multi.index])
174
175
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
177
178
``FutureWarning`` is raised to alert that the old ``rows`` and ``cols`` arguments
178
179
will not be supported in a future release (:issue:`5505`)
179
180
0 commit comments