Sampling

Sampling consists of selecting part of a population in order to draw conclusions about the whole. A random sample gives each individual a known chance of being chosen and limits selection bias. Results vary from one sample to another: this is sampling variability.

Example

df.sample(n=500, random_state=42)

Related concepts

The whole glossary