Dataset Preview
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 16 new columns ({'exchange_rate_usd', 'month', 'exchange_rate_change_pct', 'interest_rate', 'economic_stress_index', 'real_interest_rate', 'year', 'inflation_rate', 'year_month', 'inflation_3m_avg', 'date', 'foreign_reserves_usd_billion', 'oil_price_brent_usd', 'gold_price_pkr_10g', 'quarter', 'exchange_rate_yoy_change'}) and 3 missing columns ({'symbol', 'sector', 'name'}).
This happened while the csv dataset builder was generating data using
hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26/economic_indicators_daily.csv (at revision e9eea927690b19c45bc537da48a8602cb834071b), [/tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/company_metadata.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/company_metadata.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_daily.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_daily.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_monthly.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_monthly.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/major_events_timeline.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/major_events_timeline.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/psx_stock_prices_daily.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/psx_stock_prices_daily.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/psx_stocks_with_economics.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/psx_stocks_with_economics.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/psx_top_stocks.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/psx_top_stocks.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/sector_performance_monthly.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/sector_performance_monthly.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/stock_summary_statistics.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/stock_summary_statistics.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.12/site-packages/datasets/builder.py", line 1890, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 760, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
date: string
year_month: string
inflation_rate: double
interest_rate: double
exchange_rate_usd: double
year: int64
month: int64
quarter: int64
gold_price_pkr_10g: double
oil_price_brent_usd: int64
foreign_reserves_usd_billion: double
real_interest_rate: double
exchange_rate_change_pct: double
exchange_rate_yoy_change: double
inflation_3m_avg: double
economic_stress_index: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2344
to
{'symbol': Value('string'), 'name': Value('string'), 'sector': 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 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1892, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
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 16 new columns ({'exchange_rate_usd', 'month', 'exchange_rate_change_pct', 'interest_rate', 'economic_stress_index', 'real_interest_rate', 'year', 'inflation_rate', 'year_month', 'inflation_3m_avg', 'date', 'foreign_reserves_usd_billion', 'oil_price_brent_usd', 'gold_price_pkr_10g', 'quarter', 'exchange_rate_yoy_change'}) and 3 missing columns ({'symbol', 'sector', 'name'}).
This happened while the csv dataset builder was generating data using
hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26/economic_indicators_daily.csv (at revision e9eea927690b19c45bc537da48a8602cb834071b), [/tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/company_metadata.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/company_metadata.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_daily.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_daily.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_monthly.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/economic_indicators_monthly.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/major_events_timeline.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/major_events_timeline.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/psx_stock_prices_daily.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/psx_stock_prices_daily.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/psx_stocks_with_economics.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/psx_stocks_with_economics.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/psx_top_stocks.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/psx_top_stocks.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/sector_performance_monthly.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/sector_performance_monthly.csv), /tmp/hf-datasets-cache/medium/datasets/75323954113006-config-parquet-and-info-jason1966-ahsanneural_pak-b6a83d2d/hub/datasets--jason1966--ahsanneural_pakistan-stock-exchange-complete-database-2020-26/snapshots/e9eea927690b19c45bc537da48a8602cb834071b/stock_summary_statistics.csv (origin=hf://datasets/jason1966/ahsanneural_pakistan-stock-exchange-complete-database-2020-26@e9eea927690b19c45bc537da48a8602cb834071b/stock_summary_statistics.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.
symbol string | name string | sector string |
|---|---|---|
OGDC | Oil & Gas Development Company Limited | Oil & Gas |
PPL | Pakistan Petroleum Limited | Oil & Gas |
PSO | Pakistan State Oil Company Limited | Oil & Gas |
ENGRO | Engro Corporation Limited | Chemicals |
FFC | Fauji Fertilizer Company Limited | Fertilizer |
FFBL | Fauji Fertilizer Bin Qasim Limited | Fertilizer |
LUCK | Lucky Cement Limited | Cement |
DGKC | DG Khan Cement Company Limited | Cement |
MLCF | Maple Leaf Cement Factory Limited | Cement |
HBL | Habib Bank Limited | Banking |
UBL | United Bank Limited | Banking |
MCB | MCB Bank Limited | Banking |
BAFL | Bank Alfalah Limited | Banking |
ABL | Allied Bank Limited | Banking |
MEBL | Meezan Bank Limited | Banking |
HUBC | Hub Power Company Limited | Power |
KEL | K-Electric Limited | Power |
TRG | TRG Pakistan Limited | Technology |
SYS | Systems Limited | Technology |
AVN | Avanceon Limited | Technology |
NESTLE | Nestle Pakistan Limited | Food |
UNITY | Unity Foods Limited | Food |
NATF | National Foods Limited | Food |
MTL | Millat Tractors Limited | Automobile |
INDU | Indus Motor Company Limited | Automobile |
PSMC | Pak Suzuki Motor Company Limited | Automobile |
SAZEW | Sazgar Engineering Works Limited | Automobile |
ISL | International Steels Limited | Steel |
AICL | Adamjee Insurance Company Limited | Insurance |
ABOT | Abbott Laboratories Pakistan Limited | Pharma |
GLAXO | GlaxoSmithKline Pakistan Limited | Pharma |
FHAM | Fauji Meat Limited | Food |
FLYNG | Flying Cement Company Limited | Cement |
NCPL | Nishat Chunian Power Limited | Power |
KAPCO | Kot Addu Power Company Limited | Power |
SNGP | Sui Northern Gas Pipelines Limited | Oil & Gas |
SSGC | Sui Southern Gas Company Limited | Oil & Gas |
PIOC | Pioneer Cement Limited | Cement |
EFOODS | English Biscuit Manufacturers Limited | Food |
PKGS | Packages Limited | Paper & Board |
CHCC | Cherat Cement Company Limited | Cement |
FCCL | Fauji Cement Company Limited | Cement |
TELE | Telecard Limited | Technology |
JSCL | Jahangir Siddiqui & Company Limited | Investment |
DAWH | Dawood Hercules Corporation Limited | Chemicals |
PAEL | Pakistan Aluminium Beverage Cans Limited | Manufacturing |
SEARL | The Searle Company Limited | Pharma |
HASCOL | Hascol Petroleum Limited | Oil & Gas |
APL | Attock Petroleum Limited | Oil & Gas |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
End of preview.
Pakistan Stock Exchange Complete Database 2020-26
76K records: 49 stocks, economic indicators, events & 35+ technical features
Dataset Info
- Source: Kaggle
- Original Size: 23.31 MB
- Kaggle Downloads: 128
- Files: 9
Files
company_metadata.csveconomic_indicators_daily.csveconomic_indicators_monthly.csvmajor_events_timeline.csvpsx_stock_prices_daily.csvpsx_stocks_with_economics.csvpsx_top_stocks.csvsector_performance_monthly.csvstock_summary_statistics.csv
Mirrored from Kaggle
- Downloads last month
- 44