id int64 1 8 | city_name stringclasses 8 values | country stringclasses 6 values | population_millions float64 20.5 37.4 |
|---|---|---|---|
1 | Tokyo | Japan | 37.4 |
2 | Delhi | India | 31 |
3 | Shanghai | China | 27 |
4 | Sao Paulo | Brazil | 22 |
5 | Mumbai | India | 21.4 |
6 | Mexico City | Mexico | 21.3 |
7 | Cairo | Egypt | 20.9 |
8 | Beijing | China | 20.5 |
Cities Dataset
This dataset contains a collection of famous cities around the world with population data.
File
cities.csv
Columns
id– unique identifiercity_name– name of the citycountry– country where the city is locatedpopulation_millions– approximate population in millions
Usage
Load the dataset in Python using pandas:
import pandas as pd
cities = pd.read_csv("cities.csv")
print(cities.head())
- Downloads last month
- 9