Repository navigation
Fixes found after launch: the datasets now fit together. No measured value changed.
What's fixed
- Floods join the census. New column
census_districtinpak_floods_2022gives the census spelling of each district (UNOSAT and PBS name 16 districts differently, e.g. "D. I. Khan" / "Dera Ismail Khan", plus Shaheed Sikandarabad, the former name of Surab). Nowcensus.merge(floods, left_on="district", right_on="census_district")matches 135 of 136 districts. The data card explains the one that cannot match (Keamari), Lehri, and boundary differences. - One spelling for every province in every dataset: "Azad Jammu and Kashmir" (was "Azad Kashmir" in
pak_floods_2022andpak_cities) and "Islamabad Capital Territory" (was "Islamabad" inpak_air_quality). Everyprovincecolumn now has the same categories, and a new test keeps it that way. - Classification targets list their classes. For a text target, e.g.
load_pak_cities(target="province"),target_namesnow lists the classes (likesklearn.datasets.load_iris). Newtarget_columnalways gives the column name. Numeric targets are unchanged. - Data cards explain how to combine datasets: cities by
ascii_name, earthquake times (UTC) with daily dates, and the overlapping weather columns ofpak_weatherandpak_air_quality. - The website and data explorer are regenerated from 0.1.2.
Mirrors
- Kaggle copies of the three changed datasets are updated to 0.1.2.
- OpenML links are removed for now: OpenML lost every dataset uploaded after 9 November 2026, including the pakdata copies. They will be re-uploaded when OpenML accepts uploads again.
Install
pip install --upgrade pakdata