@@ -74,15 +74,15 @@ What is the median age and ticket fare price of the Titanic passengers?
74
74
titanic[[" Age" , " Fare" ]].median()
75
75
76
76
The statistic applied to multiple columns of a ``DataFrame `` (the selection of two columns
77
- return a ``DataFrame ``, see the :ref: `subset data tutorial <10min_tut_03_subset >`) is calculated for each numeric column.
77
+ returns a ``DataFrame ``, see the :ref: `subset data tutorial <10min_tut_03_subset >`) is calculated for each numeric column.
78
78
79
79
.. raw :: html
80
80
81
81
</li >
82
82
</ul >
83
83
84
84
The aggregating statistic can be calculated for multiple columns at the
85
- same time. Remember the ``describe `` function from :ref: `first tutorial <10min_tut_01_tableoriented >`?
85
+ same time. Remember the ``describe `` function from the :ref: `first tutorial <10min_tut_01_tableoriented >`?
86
86
87
87
.. ipython :: python
88
88
@@ -161,7 +161,7 @@ columns:
161
161
titanic.groupby(" Sex" ).mean()
162
162
163
163
It does not make much sense to get the average value of the ``Pclass ``.
164
- if we are only interested in the average age for each gender, the
164
+ If we are only interested in the average age for each gender, the
165
165
selection of columns (rectangular brackets ``[] `` as usual) is supported
166
166
on the grouped data as well:
167
167
@@ -254,7 +254,7 @@ within each group:
254
254
<div class =" d-flex flex-row gs-torefguide" >
255
255
<span class =" badge badge-info" >To user guide</span >
256
256
257
- The user guide has a dedicated section on ``value_counts `` , see page on :ref: `discretization <basics.discretization >`.
257
+ The user guide has a dedicated section on ``value_counts `` , see the page on :ref: `discretization <basics.discretization >`.
258
258
259
259
.. raw :: html
260
260
@@ -265,10 +265,10 @@ The user guide has a dedicated section on ``value_counts`` , see page on :ref:`d
265
265
<div class =" shadow gs-callout gs-callout-remember" >
266
266
<h4 >REMEMBER</h4 >
267
267
268
- - Aggregation statistics can be calculated on entire columns or rows
269
- - ``groupby `` provides the power of the *split-apply-combine * pattern
268
+ - Aggregation statistics can be calculated on entire columns or rows.
269
+ - ``groupby `` provides the power of the *split-apply-combine * pattern.
270
270
- ``value_counts `` is a convenient shortcut to count the number of
271
- entries in each category of a variable
271
+ entries in each category of a variable.
272
272
273
273
.. raw :: html
274
274
0 commit comments