Metrics
Use pandas to obtain statistical metrics for data.
We'll cover the following...
Chapter Goals:
- Understand the common metrics used to summarize numeric data
- Learn how to describe categorical data using histograms
A. Numeric metrics
When working with numeric features, we usually want to calculate metrics such as mean, standard deviation, etc. These metrics give us more insight into the type of data we're working with, which benefits our overall analysis of the dataset.
Rather than calculating several different metrics separately, pandas provides the describe
function to obtain a summary of a DataFrame's numeric data.
The metrics included in the output summary of describe
are
Metric | Description |
---|---|
count |