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
ENH: add Series & DataFrame .agg/.aggregate to provide convienent
function application that mimics the groupby(..).agg/.aggregate
interface
.apply is now a synonym for .agg, and will accept dict/list-likes
for aggregations
CLN: rename .name attr -> ._selection_name from SeriesGroupby for compat (didn't exist on DataFrameGroupBy)
resolves conflicts w.r.t. setting .name on a groupby object
closespandas-dev#1623closespandas-dev#14464
custom .describe
closespandas-dev#14483closespandas-dev#7014
Copy file name to clipboardExpand all lines: doc/source/timeseries.rst
+4-2
Original file line number
Diff line number
Diff line change
@@ -1470,11 +1470,13 @@ We can instead only resample those groups where we have points as follows:
1470
1470
1471
1471
ts.groupby(partial(round, freq='3T')).sum()
1472
1472
1473
+
.. _timeseries.aggregate:
1474
+
1473
1475
Aggregation
1474
1476
~~~~~~~~~~~
1475
1477
1476
-
Similar to :ref:`groupby aggregates <groupby.aggregate>` and the :ref:`window functions <stats.aggregate>`, a ``Resampler`` can be selectively
1477
-
resampled.
1478
+
Similar to the :ref:`aggregating API <basics.aggregate>`, :ref:`groupby aggregates <groupby.aggregate>`, and :ref:`window functions <stats.aggregate>`,
1479
+
a ``Resampler`` can be selectively resampled.
1478
1480
1479
1481
Resampling a ``DataFrame``, the default will be to act on all columns with the same function.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+52-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ users upgrade to this version.
9
9
10
10
Highlights include:
11
11
12
+
- new ``.agg()`` API for Series/DataFrame similar to the groupby-rolling-resample API's, see :ref:`here <whatsnew_0200.enhancements.agg>`
13
+
- Integration with the ``feather-format``, including a new top-level ``pd.read_feather()`` and ``DataFrame.to_feather()`` method, see :ref:`here <io.feather>`.
12
14
- Building pandas for development now requires ``cython >= 0.23`` (:issue:`14831`)
13
15
14
16
Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations <whatsnew_0200.deprecations>` before updating.
@@ -22,8 +24,57 @@ Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations
22
24
New features
23
25
~~~~~~~~~~~~
24
26
25
-
- Integration with the ``feather-format``, including a new top-level ``pd.read_feather()`` and ``DataFrame.to_feather()`` method, see :ref:`here <io.feather>`.
27
+
.. _whatsnew_0200.enhancements.agg:
28
+
29
+
``agg`` API
30
+
^^^^^^^^^^^
31
+
32
+
Series & DataFrame have been enhanced to support the aggregation API. This is an already familiar API that
33
+
is supported for groupby, windows operations, and resampling. This allows one to express, possibly multiple
34
+
aggregation operations in a single concise way by using ``.agg()`` and ``.transform()``. The
35
+
full documentation is :ref:`here <basics.aggregate>`` (:issue:`1623`)
0 commit comments