pakdata 馃嚨馃嚢

Real, openly licensed Pakistan-specific datasets for machine learning, with a scikit-learn style API. Every value comes from a named public source: Pakistan Bureau of Statistics, World Bank, FAO, USGS, UNOSAT, Copernicus and GeoNames.

pip install pakdata

from pakdata import load_pak_census_districts
X, y = load_pak_census_districts(return_X_y=True)

GitHub 路 PyPI 路 Hugging Face 路 Kaggle 路 Browse the data 路 Use from any language 路 DOI 10.5281/zenodo.24662545

Pakistan Census 2023 (7th Population and Housing Census): 136 districts, population, literacy, housing

136 rows 路 PBS open government licence
load_pak_census_districts()

Earthquakes M>=4 in and around Pakistan, 1973-2025 (USGS ComCat)

9,124 rows 路 US Public Domain
load_pak_earthquakes()

Daily weather (ERA5 reanalysis) for 16 Pakistani cities, 2016-2025

58,448 rows 路 CC BY 4.0
load_pak_weather()