📊 Dataset · CSV
gapminder.csv dataset
Download gapminder.csv free (1,704 rows × 6 columns, 80.2 KB). Preview the rows and columns, load it in pandas in one line and practise with 3 Python lessons.
- Size80.2 KB
- Rows1,704
- Columns6
- Used in3 lessons
Preview (first rows)
| country | year | pop | continent | lifeExp | gdpPercap |
|---|---|---|---|---|---|
| Afghanistan | 1952 | 8425333.0 | Asia | 28.801 | 779.4453145 |
| Afghanistan | 1957 | 9240934.0 | Asia | 30.332 | 820.8530296 |
| Afghanistan | 1962 | 10267083.0 | Asia | 31.997 | 853.10071 |
| Afghanistan | 1967 | 11537966.0 | Asia | 34.02 | 836.1971382 |
| Afghanistan | 1972 | 13079460.0 | Asia | 36.088 | 739.9811058 |
| Afghanistan | 1977 | 14880372.0 | Asia | 38.438 | 786.11336 |
| Afghanistan | 1982 | 12881816.0 | Asia | 39.854 | 978.0114388 |
| Afghanistan | 1987 | 13867957.0 | Asia | 40.822 | 852.3959448 |
Columns
| Column | Type | Missing | Example |
|---|---|---|---|
country | text | 0 | Afghanistan |
year | integer | 0 | 1952 |
pop | decimal | 0 | 8425333.0 |
continent | text | 0 | Asia |
lifeExp | decimal | 0 | 28.801 |
gdpPercap | decimal | 0 | 779.4453145 |
Load it in Python
import pandas as pd
df = pd.read_csv("gapminder.csv")
df.head()


