Computing statistical functions on Series and DataFrame objects
In the following section, we will see how to compute statistical functions on Series
and DataFrame
objects.
Getting ready
Descriptive statistics gives us the ability to understand numerous measures of data that describe a specific characteristic of the underlying data. Built into pandas are several classes of these descriptive statistical operations that can be applied to a Series
or DataFrame
.
Let's examine several facets of statistical analysis/techniques provided by pandas:
- Summary descriptive statistics
- Measuring central tendency: mean, median, and mode
- Variance and standard deviation
How to do it...
This section represents how to get some information about statistics and its applications, and how to calculate the central measurements of a process.
Retrieving summary descriptive statistics
pandas objects provide the .describe()
method, which returns a set of summary statistics of the object's data. When applied to a DataFrame
, .describe...