📊 Dataset · CSV
gapminder_life_expectancy_raw.csv dataset
Download gapminder_life_expectancy_raw.csv free (1,380 rows × 6 columns, 70.2 KB). Preview the rows and columns, load it in pandas in one line and practise…
- Size70.2 KB
- Rows1,380
- Columns6
- Used in1 lesson
Preview (first rows)
| country | year | pop | continent | lifeExp | gdpPercap |
|---|---|---|---|---|---|
| Afghanistan | 1952.0 | 8425333.0 | Asia | 28.801 | 779.4453145 |
| Afghanistan | 1957.0 | 9240934.0 | Asia | 30.332 | 820.8530296 |
| Afghanistan | 1962.0 | 10267083.0 | Asia | 31.997 | 853.10071 |
| Afghanistan | 1967.0 | 11537966.0 | Asia | 34.02 | 836.1971382 |
| Afghanistan | 1972.0 | 13079460.0 | Asia | 36.088 | 739.9811058 |
| Afghanistan | 1977.0 | 14880372.0 | Asia | 38.438 | 786.11336 |
| Afghanistan | 1982.0 | 12881816.0 | Asia | 39.854 | 978.0114388 |
| Afghanistan | 1987.0 | 13867957.0 | Asia | 40.822 | 852.3959448 |
Columns
| Column | Type | Missing | Example |
|---|---|---|---|
country | text | 0 | Afghanistan |
year | decimal | 0 | 1952.0 |
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_life_expectancy_raw.csv")
df.head()
