Collect the data in panel format
- User
Collect the data in panel format
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Collect the data in panel format
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Great! If you'd like the company-level data of South African (JSE-listed) non-financial companies since 2020 in a panel format, here's how we can structure it and what steps are needed.
Panel data means having multiple observations for each company over time. For your request, this would be:
| Year | Ticker | Company Name | Sector | Revenue (ZAR) | Net Income (ZAR) | Total Assets (ZAR) | Market Cap (ZAR) | ROA (%) | ROE (%) | Employees |
|---|---|---|---|---|---|---|---|---|---|---|
| 2020 | NPN.JO | Naspers | Communication | 250,000,000 | 30,000,000 | 1,000,000,000 | 800,000,000 | 3.0 | 5.5 | 20,000 |
| 2021 | NPN.JO | Naspers | Communication | 270,000,000 | 32,000,000 | 1,100,000,000 | 850,000,000 | 3.2 | 6.0 | 21,000 |
| 2020 | SBK.JO | Shoprite Holdings | Consumer Staples | 150,000,000 | 10,000,000 | 800,000,000 | 600,000,000 | 1.2 | 3.5 | 15,000 |
Since I cannot scrape or fetch live data directly, I’ll help you build or simulate this dataset using:
Here is a sample list of non-financial companies listed on the JSE:
| Ticker | Company Name | GICS Sector |
|---|---|---|
| NPN.JO | Prosus NV / Naspers | Communication Services |
| RMH.JO | Remgro Ltd | Consumer Discretionary |
| SBK.JO | Shoprite Holdings | Consumer Staples |
| BVT.JO | Barloworld Ltd | Industrials |
| CML.JO | CML Group | Consumer Discretionary |
| AGL.JO | Anglo American Platinum | Materials |
| IMP.JO | Imperial Holdings | Industrials |
| MNP.JO | Mediclinic International | Health Care |
| OML.JO | Omnia Holdings | Materials |
| HLT.JO | Heineken South Africa | Consumer Staples |
| PFG.JO | Premier Foods | Consumer Staples |
| DSY.JO | Distell Group | Consumer Staples |
| WDS.JO | Famous Brands | Consumer Discretionary |
| ACL.JO | Astral Foods | Consumer Staples |
| FSR.JO | Fortress REIT | Real Estate (exclude) ❌ |
| SLM.JO | Sanlam | Financials (exclude) ❌ |
We will exclude any companies in Financials, Banks, or Real Estate sectors.
You can get this from:
Below is a simulated panel dataset for 3 companies from 2020–2022:
Year,Ticker,Company,Sector,Revenue,ZAR_NetIncome,ZAR_TotalAssets,ZAR_MarketCap,ROA,ROE,Employees
2020,NPN.JO,Naspers,Communication,250000000,30000000,1000000000,800000000,3.0,5.5,20000
2021,NPN.JO,Naspers,Communication,270000000,32000000,1100000000,850000000,3.2,6.0,21000
2022,NPN.JO,Naspers,Communication,290000000,35000000,1200000000,900000000,3.4,6.2,22000
2020,SBK.JO,Shoprite,Consumer Staples,150000000,10000000,800000000,600000000,1.2,3.5,15000
2021,SBK.JO,Shoprite,Consumer Staples,155000000,11000000,820000000,610000000,1.3,3.7,15500
2022,SBK.JO,Shoprite,Consumer Staples,160000000,12000000,840000000,620000000,1.4,3.9,16000
2020,MNP.JO,Mediclinic,Healthcare,120000000,8000000,500000000,400000000,1.6,4.0,10000
2021,MNP.JO,Mediclinic,Healthcare,125000000,8500000,520000000,410000000,1.7,4.2,10500
2022,MNP.JO,Mediclinic,Healthcare,130000000,9000000,540000000,420000000,1.8,4.5,11000
You can copy-paste this into a
.csvfile and open it in Excel or Python for analysis.
import pandas as pd
# Sample data
data = {
'Year': [2020, 2021, 2022, 2020, 2021, 2022, 2020, 2021, 2022],
'Ticker': ['NPN.JO', 'NPN.JO', 'NPN.JO', 'SBK.JO', 'SBK.JO', 'SBK.JO', 'MNP.JO', 'MNP.JO', 'MNP.JO'],
'Company': ['Naspers', 'Naspers', 'Naspers', 'Shoprite', 'Shoprite', 'Shoprite', 'Mediclinic', 'Mediclinic', 'Mediclinic'],
'Sector': ['Communication', 'Communication', 'Communication',
'Consumer Staples', 'Consumer Staples', 'Consumer Staples',
'Healthcare', 'Healthcare', 'Healthcare'],
'Revenue': [250000000, 270000000, 290000000,
150000000, 155000000, 160000000,
120000000, 125000000, 130000000],
'ZAR_NetIncome': [30000000, 32000000, 35000000,
10000000, 11000000, 12000000,
8000000, 8500000, 9000000],
'ZAR_TotalAssets': [1000000000, 1100000000, 1200000000,
800000000, 820000000, 840000000,
500000000, 520000000, 540000000],
'ZAR_MarketCap': [800000000, 850000000, 900000000,
600000000, 610000000, 620000000,
400000000, 410000000, 420000000],
'ROA': [3.0, 3.2, 3.4, 1.2, 1.3, 1.4, 1.6, 1.7, 1.8],
'ROE': [5.5, 6.0, 6.2, 3.5, 3.7, 3.9, 4.0, 4.2, 4.5],
'Employees': [20000, 21000, 22000, 15000, 15500, 16000, 10000, 10500, 11000]
}
df = pd.DataFrame(data)
print(df.head())
Would you like me to:
Let me know how you'd like to proceed!