Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 18 new columns ({'rural_food_mom_pct', 'urban_non_food_yoy_pct', 'wpi_mom_pct', 'rural_non_food_yoy_pct', 'spi_mom_pct', 'rural_cpi_mom_pct', 'urban_cpi_yoy_pct', 'rural_food_yoy_pct', 'urban_non_food_mom_pct', 'national_cpi_yoy_pct', 'spi_yoy_pct', 'urban_food_yoy_pct', 'rural_non_food_mom_pct', 'urban_cpi_mom_pct', 'national_cpi_mom_pct', 'rural_cpi_yoy_pct', 'wpi_yoy_pct', 'urban_food_mom_pct'}) and 8 missing columns ({'cpi_yoy_pct_2007_08_published', 'month', 'urban_cpi_yoy_pct_2015_16', 'year', 'wpi_yoy_pct_2007_08_published', 'rural_cpi_yoy_pct_2015_16', 'wpi_yoy_pct_2015_16', 'national_cpi_yoy_pct_2015_16'}).

This happened while the csv dataset builder was generating data using

hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices/data/processed/monthly_inflation_rates_latest.csv (at revision 49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a), ['hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/inflation_yoy_historical.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/monthly_inflation_rates_latest.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/monthly_spi_city_item_prices.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/price_indices_historical.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/source_inventory_monthly.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/source_inventory_weekly.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/weekly_spi_city_item_prices.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/weekly_spi_item_changes.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/weekly_spi_summary.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data_dictionary.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              period: string
              source_url: string
              national_cpi_yoy_pct: double
              national_cpi_mom_pct: double
              urban_cpi_yoy_pct: double
              urban_cpi_mom_pct: double
              rural_cpi_yoy_pct: double
              rural_cpi_mom_pct: double
              urban_food_yoy_pct: double
              urban_food_mom_pct: double
              rural_food_yoy_pct: double
              rural_food_mom_pct: double
              urban_non_food_yoy_pct: double
              urban_non_food_mom_pct: double
              rural_non_food_yoy_pct: double
              rural_non_food_mom_pct: double
              spi_yoy_pct: double
              spi_mom_pct: double
              wpi_yoy_pct: double
              wpi_mom_pct: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2952
              to
              {'period': Value('string'), 'year': Value('int64'), 'month': Value('int64'), 'national_cpi_yoy_pct_2015_16': Value('float64'), 'urban_cpi_yoy_pct_2015_16': Value('float64'), 'rural_cpi_yoy_pct_2015_16': Value('float64'), 'wpi_yoy_pct_2015_16': Value('float64'), 'cpi_yoy_pct_2007_08_published': Value('float64'), 'wpi_yoy_pct_2007_08_published': Value('float64'), 'source_url': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 18 new columns ({'rural_food_mom_pct', 'urban_non_food_yoy_pct', 'wpi_mom_pct', 'rural_non_food_yoy_pct', 'spi_mom_pct', 'rural_cpi_mom_pct', 'urban_cpi_yoy_pct', 'rural_food_yoy_pct', 'urban_non_food_mom_pct', 'national_cpi_yoy_pct', 'spi_yoy_pct', 'urban_food_yoy_pct', 'rural_non_food_mom_pct', 'urban_cpi_mom_pct', 'national_cpi_mom_pct', 'rural_cpi_yoy_pct', 'wpi_yoy_pct', 'urban_food_mom_pct'}) and 8 missing columns ({'cpi_yoy_pct_2007_08_published', 'month', 'urban_cpi_yoy_pct_2015_16', 'year', 'wpi_yoy_pct_2007_08_published', 'rural_cpi_yoy_pct_2015_16', 'wpi_yoy_pct_2015_16', 'national_cpi_yoy_pct_2015_16'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices/data/processed/monthly_inflation_rates_latest.csv (at revision 49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a), ['hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/inflation_yoy_historical.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/monthly_inflation_rates_latest.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/monthly_spi_city_item_prices.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/price_indices_historical.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/source_inventory_monthly.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/source_inventory_weekly.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/weekly_spi_city_item_prices.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/weekly_spi_item_changes.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data/processed/weekly_spi_summary.csv', 'hf://datasets/opendoc-pakistan/pakistan_inflation_and_prices@49e60f515dcd0aa0f5a32e113d50bb917fe3fd9a/data_dictionary.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

period
string
year
int64
month
int64
national_cpi_yoy_pct_2015_16
float64
urban_cpi_yoy_pct_2015_16
float64
rural_cpi_yoy_pct_2015_16
float64
wpi_yoy_pct_2015_16
float64
cpi_yoy_pct_2007_08_published
float64
wpi_yoy_pct_2007_08_published
float64
source_url
string
2017-07
2,017
7
3.9
4.4
3.1
1.9
2.9
0.7
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2017-08
2,017
8
4.4
5.1
3.4
2
3.4
1
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2017-09
2,017
9
4.7
5.2
3.9
2.7
3.9
1.6
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2017-10
2,017
10
4.8
5.3
4.2
3.7
3.8
2.3
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2017-11
2,017
11
5
5.4
4.4
4.2
4
2.9
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2017-12
2,017
12
5.6
6.1
4.9
4.5
4.6
3.4
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-01
2,018
1
5.2
5.4
4.9
6.4
4.4
4.7
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-02
2,018
2
4.5
4.8
4
5.9
3.8
4.1
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-03
2,018
3
3.6
4
3
5.4
3.3
3.7
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-04
2,018
4
4
4.4
3.3
6.3
3.7
4
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-05
2,018
5
5
5.3
4.5
8.6
4.2
5.6
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-06
2,018
6
5.7
5.8
5.4
11.4
5.2
7.6
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-07
2,018
7
6.7
6.7
6.6
16.3
5.8
10.5
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-08
2,018
8
6.2
6.2
6.2
16.7
5.8
11
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-09
2,018
9
5.4
5.6
5.1
14.6
5.1
9.3
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-10
2,018
10
6.5
7
5.7
18.6
6.8
13.1
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-11
2,018
11
5.7
6.3
4.7
18.6
6.5
13.5
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2018-12
2,018
12
5.4
5.9
4.6
16.5
6.2
12.1
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-01
2,019
1
5.6
6.2
4.6
12.6
7.2
9.9
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-02
2,019
2
6.8
7.2
6
13.9
8.2
11
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-03
2,019
3
8.6
8.9
8.2
16.6
9.4
12.6
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-04
2,019
4
8.3
8.4
8.1
17.1
8.8
13.8
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-05
2,019
5
8.4
8.5
8.3
16.5
9.1
14
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-06
2,019
6
8
8.1
7.9
14
8.9
12.7
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-07
2,019
7
8.4
8.7
7.9
13.3
10.3
13.5
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-08
2,019
8
10.5
10.6
10.3
14.1
11.6
13.6
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-09
2,019
9
11.4
11.6
11.1
15.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-10
2,019
10
11
10.9
11.3
13.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-11
2,019
11
12.7
12.1
13.6
11.2
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2019-12
2,019
12
12.6
12
13.6
12.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-01
2,020
1
14.6
13.4
16.4
15.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-02
2,020
2
12.4
11.2
14.2
12.7
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-03
2,020
3
10.2
9.3
11.7
9.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-04
2,020
4
8.5
7.7
9.8
4.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-05
2,020
5
8.2
7.3
9.7
1.5
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-06
2,020
6
8.6
7.6
10
0.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-07
2,020
7
9.3
7.8
11.6
3.2
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-08
2,020
8
8.2
7.1
9.9
3.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-09
2,020
9
9
7.7
11.1
4.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-10
2,020
10
8.9
7.3
11.3
5.1
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-11
2,020
11
8.3
7
10.5
5
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2020-12
2,020
12
8
7
9.5
5.7
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-01
2,021
1
5.7
5
6.6
6.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-02
2,021
2
8.7
8.6
8.8
9.5
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-03
2,021
3
9.1
8.7
9.5
14.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-04
2,021
4
11.1
11
11.3
16.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-05
2,021
5
10.9
10.8
10.9
19.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-06
2,021
6
9.7
9.6
9.7
20.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-07
2,021
7
8.4
8.7
8
17.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-08
2,021
8
8.4
8.3
8.4
17.1
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-09
2,021
9
9
9.1
8.8
19.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-10
2,021
10
9.2
9.6
8.7
21.2
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-11
2,021
11
11.5
12
10.9
27
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2021-12
2,021
12
12.3
12.7
11.6
26.2
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-01
2,022
1
13
13
12.9
24
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-02
2,022
2
12.2
11.5
13.3
23.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-03
2,022
3
12.7
11.9
13.9
23.8
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-04
2,022
4
13.4
12.2
15.1
28.1
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-05
2,022
5
13.8
12.4
15.9
29.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-06
2,022
6
21.3
19.8
23.6
38.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-07
2,022
7
24.9
23.6
26.9
38.5
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-08
2,022
8
27.3
26.2
28.8
41.2
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-09
2,022
9
23.2
21.2
26.1
38.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-10
2,022
10
26.6
24.6
29.5
32.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-11
2,022
11
23.8
21.6
27.2
27.7
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2022-12
2,022
12
24.5
21.6
28.8
27.1
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-01
2,023
1
27.6
24.4
32.3
28.5
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-02
2,023
2
31.5
28.8
35.6
36.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-03
2,023
3
35.4
33
38.9
37.5
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-04
2,023
4
36.4
33.5
40.7
33.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-05
2,023
5
38
35.1
42.2
32.8
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-06
2,023
6
29.4
27.3
32.4
22.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-07
2,023
7
28.3
26.3
31.3
23.1
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-08
2,023
8
27.4
25
30.9
24.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-09
2,023
9
31.4
29.7
33.9
26.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-10
2,023
10
26.8
25.5
28.7
24.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-11
2,023
11
29.2
30.4
27.5
26.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2023-12
2,023
12
29.7
30.9
27.9
27.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-01
2,024
1
28.3
30.2
25.7
27
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-02
2,024
2
23.1
24.9
20.5
18.7
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-03
2,024
3
20.7
21.9
19
14.8
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-04
2,024
4
17.3
19.4
14.5
13.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-05
2,024
5
11.8
14.3
8.2
9.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-06
2,024
6
12.6
14.9
9.3
10.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-07
2,024
7
11.1
13.2
8.1
10.4
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-08
2,024
8
9.6
11.7
6.7
6.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-09
2,024
9
6.9
9.3
3.6
1.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-10
2,024
10
7.2
9.3
4.2
3.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-11
2,024
11
4.9
5.2
4.3
2.3
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-12
2,024
12
4.1
4.4
3.6
1.9
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2025-01
2,025
1
2.4
2.7
1.9
0.6
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
2024-09
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2024-10
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2024-11
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2024-12
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2025-01
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2025-02
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2025-03
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2025-04
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
2025-05
null
null
null
null
null
null
null
null
https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
End of preview.

Pakistan Inflation and SPI Prices

Official Pakistan Bureau of Statistics inflation and price data: CPI/WPI historical indices, inflation rates, weekly SPI city-item prices, weekly SPI summaries and item changes, and monthly SPI city-item average prices.


Source: OpenDoc Pakistan

Pakistan Inflation and SPI Prices

Summary

This dataset contains official Pakistan Bureau of Statistics (PBS) inflation and price data, including historical CPI/WPI index values, historical year-on-year inflation rates, latest monthly inflation-rate tables, weekly Sensitive Price Indicator (SPI) city-item prices, weekly SPI expenditure-group summaries, weekly item-level price-change tables, and monthly SPI city-item average prices.

Dataset Details

  • Dataset ID: pakistan-inflation-and-prices
  • Version: 0.1.0
  • Category: Economy and Finance
  • Tags: finance, inflation, cpi, spi, wpi, prices, pakistan, pbs
  • Language: English
  • Geography: Pakistan
  • Time Period: 2017-07 - 2026-07
  • File Formats: CSV
  • Records: 106,593 parsed data observations plus 83 source-inventory records
  • Update Frequency: Weekly/monthly at source
  • Maintainer: OpenDoc Data Stewardship Team

Source and Provenance

  • Source Name: Pakistan Bureau of Statistics (PBS), Price Statistics
  • Source URL: https://www.pbs.gov.pk/price-statistics/
  • Primary Source Files:
    • https://www.pbs.gov.pk/wp-content/uploads/2020/07/indices.pdf
    • https://www.pbs.gov.pk/wp-content/uploads/2020/07/Monthly-Review-June-2026.pdf
    • PBS weekly SPI Excel annex/report files linked from the Price Statistics page
    • PBS monthly SPI prices Excel annex files linked from the Price Statistics page
  • Source Type: Official national statistical office publication
  • Collection Date: July 5, 2026
  • Processing Pipeline: Downloaded official PBS source files, parsed embedded-text PDF tables with pypdf, parsed Excel workbooks through Open XML, normalized repeated city/item workbook blocks into long CSVs, corrected one malformed PBS link path (wp-contet to wp-content), and wrote source-inventory files for auditability.
  • OCR Decision: OCR was checked but not used. The PBS PDFs sampled have extractable text layers, and the largest SPI city/item tables are available as Excel. OCR would have reduced structural reliability for this package.
  • Raw Data Availability: Public on the PBS Price Statistics page.

License

  • Original License: PBS public website data; explicit open redistribution license not found.
  • Repository License: LicenseRef-PBS-Public-Website
  • Attribution Required: Yes, cite Pakistan Bureau of Statistics.
  • Commercial Use: No explicit restriction found in the source page reviewed.
  • Redistribution: No explicit restriction found in the source page reviewed; use with attribution to PBS.
  • Restriction: Do not label as CC-BY or public domain unless PBS publishes explicit open-license terms.

Data Structure

CSV files are in data/processed/.

  • price_indices_historical.csv: monthly CPI/WPI index values from indices.pdf, 2017-07 to 2025-01.
  • inflation_yoy_historical.csv: monthly historical year-on-year CPI/WPI inflation rates from indices.pdf, 2017-07 to 2025-01.
  • monthly_inflation_rates_latest.csv: PBS latest review Table 1.a monthly inflation rates, 2024-09 to 2026-06.
  • weekly_spi_city_item_prices.csv: weekly SPI essential-item min/avg/max prices by city, 2025-10-23 to 2026-07-02.
  • weekly_spi_summary.csv: weekly SPI by expenditure group/quintile and combined, 2025-10-23 to 2026-07-02.
  • weekly_spi_item_changes.csv: weekly item-level SPI price changes, weights, and impact, 2025-10-23 to 2026-07-02.
  • monthly_spi_city_item_prices.csv: monthly city-item average prices for SPI items and non-index essential items, 2025-07 to 2026-06.
  • source_inventory_weekly.csv: weekly source-file inventory and parsed row counts.
  • source_inventory_monthly.csv: monthly source-file inventory and parsed row counts.

Data Dictionary

See data_dictionary.csv.

Quality Report

  • Quality Score: 94 / 100
  • Validation Status: CSV validation passed.
  • Duplicate Keys: 0 duplicate primary keys in parsed tables.
  • Source Parse Errors: 0 after correcting the malformed PBS path typo.
  • Missing Values: Missing and not-available price cells are represented through availability_status.
  • Known Issues: Some PBS weekly annex cells report 0 for unavailable city/item prices. These are not treated as real prices; price_pkr/average_price_pkr is blank and availability_status is reported_zero.

Privacy and Sensitivity Review

  • Privacy Level: P0 (aggregate official statistics, no personal data)
  • Personal Data Present: No
  • Sensitive Data Present: No
  • Redactions Applied: None

Bias, Gaps, and Limitations

  • The indices.pdf historical archive currently parses through January 2025; the latest monthly review extends high-level inflation rates through June 2026.
  • Weekly Excel sources currently available with complete workbook structure cover October 23, 2025 through July 2, 2026.
  • Item-level prices are official published observations and should be interpreted with PBS collection methodology.
  • Source terms do not state an explicit open-data license.

Example Usage

import pandas as pd

weekly = pd.read_csv("data/processed/weekly_spi_city_item_prices.csv")
weekly["week_end_date"] = pd.to_datetime(weekly["week_end_date"])
avg_wheat = weekly[
    (weekly["item_description"] == "Wheat Flour Bag")
    & (weekly["price_type"] == "avg")
    & (weekly["availability_status"] == "reported")
]
print(avg_wheat.tail())

Citation

Pakistan Bureau of Statistics, "Price Statistics", curated as "Pakistan Inflation and SPI Prices" by OpenDoc Pakistan (OpenDoc), v0.1.0, 2026.
Downloads last month
34