Skip to content

Commit 614a48e

Browse files
committed
DOC: whatsnew updates
1 parent 8b40453 commit 614a48e

File tree

4 files changed

+80
-61
lines changed

4 files changed

+80
-61
lines changed

doc/source/basics.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,8 @@ Aggregating with a dict
917917
+++++++++++++++++++++++
918918

919919
Passing a dictionary of column names to a scalar or a list of scalars, to ``DataFame.agg``
920-
allows you to customize which functions are applied to which columns.
920+
allows you to customize which functions are applied to which columns. Note that the results
921+
are not in any particular order, you can use an ``OrderedDict`` instead to guarantee ordering.
921922

922923
.. ipython:: python
923924
@@ -977,9 +978,9 @@ Transform API
977978

978979
.. versionadded:: 0.20.0
979980

980-
The :method:`~DataFrame.transform` method returns an object that is indexed the same (same size)
981+
The :meth:`~DataFrame.transform` method returns an object that is indexed the same (same size)
981982
as the original. This API allows you to provide *multiple* operations at the same
982-
time rather than one-by-one. Its api is quite similar to the ``.agg`` API.
983+
time rather than one-by-one. Its API is quite similar to the ``.agg`` API.
983984

984985
Use a similar frame to the above sections.
985986

@@ -990,22 +991,22 @@ Use a similar frame to the above sections.
990991
tsdf.iloc[3:7] = np.nan
991992
tsdf
992993
993-
Transform the entire frame. Transform allows functions to input as a numpy function, string
994-
function name and user defined function.
994+
Transform the entire frame. ``.transform()`` allows input functions as: a numpy function, a string
995+
function name or a user defined function.
995996

996997
.. ipython:: python
997998
998999
tsdf.transform(np.abs)
9991000
tsdf.transform('abs')
10001001
tsdf.transform(lambda x: x.abs())
10011002
1002-
Since this is a single function, this is equivalent to a ufunc application
1003+
Here ``.transform()`` received a single function; this is equivalent to a ufunc application
10031004

10041005
.. ipython:: python
10051006
10061007
np.abs(tsdf)
10071008
1008-
Passing a single function to ``.transform()`` with a Series will yield a single Series in return.
1009+
Passing a single function to ``.transform()`` with a ``Series`` will yield a single ``Series`` in return.
10091010

10101011
.. ipython:: python
10111012

doc/source/computation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ Aggregation
618618

619619
Once the ``Rolling``, ``Expanding`` or ``EWM`` objects have been created, several methods are available to
620620
perform multiple computations on the data. These operations are similar to the :ref:`aggregating API <basics.aggregate>`,
621-
:ref:`groupby aggregates <groupby.aggregate>`, and :ref:`resample API <timeseries.aggregate>`.
621+
:ref:`groupby API <groupby.aggregate>`, and :ref:`resample API <timeseries.aggregate>`.
622622

623623

624624
.. ipython:: python

doc/source/timeseries.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ We can instead only resample those groups where we have points as follows:
15241524
Aggregation
15251525
~~~~~~~~~~~
15261526

1527-
Similar to the :ref:`aggregating API <basics.aggregate>`, :ref:`groupby aggregates API <groupby.aggregate>`, and the :ref:`window functions API <stats.aggregate>`,
1527+
Similar to the :ref:`aggregating API <basics.aggregate>`, :ref:`groupby API <groupby.aggregate>`, and the :ref:`window functions API <stats.aggregate>`,
15281528
a ``Resampler`` can be selectively resampled.
15291529

15301530
Resampling a ``DataFrame``, the default will be to act on all columns with the same function.

0 commit comments

Comments
 (0)