Dataset Viewer
The dataset viewer is not available for this dataset.
The JWT signature verification failed. Check the signing key and the algorithm.
Error code:   JWTInvalidSignature
Exception:    InvalidSignatureError
Message:      Signature verification failed
Traceback:    Traceback (most recent call last):
                File "/src/libs/libapi/src/libapi/jwt_token.py", line 286, in validate_jwt
                  decoded = jwt.decode(
                      jwt=token,
                  ...<2 lines>...
                      options=options,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 368, in decode
                  decoded = self.decode_complete(
                      jwt,
                  ...<8 lines>...
                      leeway=leeway,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 265, in decode_complete
                  decoded = self._jws.decode_complete(
                      jwt,
                  ...<3 lines>...
                      detached_payload=detached_payload,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 270, in decode_complete
                  self._verify_signature(
                  ~~~~~~~~~~~~~~~~~~~~~~^
                      signing_input,
                      ^^^^^^^^^^^^^^
                  ...<4 lines>...
                      options=merged_options,
                      ^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 417, in _verify_signature
                  raise InvalidSignatureError("Signature verification failed")
              jwt.exceptions.InvalidSignatureError: Signature verification failed

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.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Zaid Financial Ratios Dataset

This dataset contains financial statement PDFs, extracted financial statement JSONs, and ground-truth financial ratios for public companies, built for the Financial Ratios Dataset Creation assignment.

This is a team project split across 4 members; this repository covers Zaid's assigned slice: 12 UK companies. The remaining 13 UK companies and all 25 US companies are being assembled by other team members and merged separately.

Coverage

  • US companies completed: 0 / 25 (out of scope for this contributor's assignment)
  • UK companies completed: 12 / 25
  • Status: In progress (team merge pending)
Company Ticker Country Sector PDF Balance Sheet Income Statement Cash Flow Ratios
Rolls-Royce Holdings plc RR.L UK Aerospace & Defense βœ… βœ… βœ… βœ… βœ…
BAE Systems plc BA.L UK Aerospace & Defense βœ… βœ… βœ… βœ… βœ…
Tesco PLC TSCO.L UK Food Retail βœ… βœ… βœ… βœ… βœ…
J Sainsbury plc SBRY.L UK Food Retail βœ… βœ… βœ… βœ… βœ…
Reckitt Benckiser Group plc RKT.L UK Consumer Goods βœ… βœ… βœ… βœ… βœ…
National Grid plc NG.L UK Regulated Utility βœ… βœ… βœ… βœ… βœ…
Prudential plc PRU.L UK Life Insurance βœ… βœ… βœ… βœ… βœ…
Standard Chartered PLC STAN.L UK Banking βœ… βœ… βœ… βœ… βœ…
Legal & General Group Plc LGEN.L UK Insurance / Asset Mgmt βœ… βœ… βœ… βœ… βœ…
Rentokil Initial plc RTO.L UK Business Services βœ… βœ… βœ… βœ… βœ…
Compass Group PLC CPG.L UK Food Services βœ… βœ… βœ… βœ… βœ…
Aviva plc AV.L UK Composite Insurance βœ… βœ… βœ… βœ… βœ…

Folder Structure

zaid-financial-ratios/
β”œβ”€β”€ UK_Financial_Statements_PDFs/
β”‚   └── <Company>/<TICKER>_annual_report_2025.pdf
β”œβ”€β”€ UK_Financial_Statements_JSONs/
β”‚   └── <Company>/<TICKER>_balance_sheet.json
β”‚       <Company>/<TICKER>_income_statement.json
β”‚       <Company>/<TICKER>_cash_flow_statement.json
β”œβ”€β”€ ground_truth_jsons/
β”‚   └── UK/<TICKER>_ratios.json
β”œβ”€β”€ UK_Financial_Ratios_Extraction_Spec.md   (detailed extraction methodology & company-by-company notes)
└── README.md

Sources Used

  • Company annual report (original PDF, downloaded from each company's investor relations page) β€” primary source for all extracted statement figures
  • StockAnalysis.com β€” cross-verification of calculated ratios, and source for market-price-based ratios (P/E, P/B, P/S, Dividend Yield) that cannot be derived from financial statements alone
  • Yahoo Finance / Macrotrends β€” used for a third-source spot-check on the largest flagged discrepancies (see Known Issues below)

Methodology

  1. Financial statement figures (Balance Sheet, Income Statement, Cash Flow Statement) are extracted directly from each company's official annual report, not from third-party websites.
  2. Every extracted statement was validated by recomputing all printed subtotals from their components and confirming an exact match against the PDF.
  3. Ratios (~18-24 per company) are calculated independently from the extracted statement figures using standard financial formulas.
  4. Ratios combining an income-statement (flow) figure with a balance-sheet (stock) figure β€” ROA, ROE, ROCE, Asset Turnover, Inventory Turnover, Receivables Turnover β€” use the average of the current and prior year-end balance-sheet figures as the denominator, not the ending balance alone, since Net Income/Revenue accrue across the whole year while a balance sheet figure is a single point-in-time snapshot. Liquidity and leverage ratios (Current Ratio, Quick Ratio, Debt to Equity, Debt Ratio) use ending-period balances, as is standard. Where only two fiscal years were extracted per company, the average-balance basis could only be applied to the most recent year (the earlier year is left on an ending-balance basis with a note); Rentokil Initial and National Grid had a third year of balance sheet data available, extending this to both years shown.
  5. Each calculated ratio is cross-checked against StockAnalysis.com. If the values match or are very close, they're recorded together with a note confirming the match. If there's a meaningful mismatch, the calculated (statement-derived) value is kept as the primary ground-truth figure, with a notes field explaining the likely cause.
  6. Market-price-based ratios (P/E, P/B, P/S, Dividend Yield) are taken directly from StockAnalysis.com, since they depend on share price rather than statement data alone.
  7. Where a company's sector makes a standard ratio meaningless (e.g. Current Ratio for an insurer with no current/non-current split), that ratio is omitted in favor of a sector-appropriate substitute rather than force-fit.

Known Issues or Mismatches

  • Ending-vs-average-balance audit (all companies): an earlier draft of this dataset computed ROA/ROE/ROCE/turnover ratios using ending-period balance-sheet figures only. A second-source cross-check against Yahoo Finance and StockAnalysis.com revealed this was a genuine formula bug for Return on Equity specifically: switching to average-balance denominators reproduced external sources exactly or near-exactly for Rolls-Royce, BAE Systems, Reckitt Benckiser, National Grid, and Rentokil Initial (both years, since 3 years of its balance sheet data were extracted), and materially narrowed the gap for Standard Chartered, Legal & General, Aviva, Compass Group, and Prudential. This has been fixed throughout. ROA, by contrast, mostly did not improve with averaging (the residual gaps there trace to differing earnings bases, e.g. adjusted vs statutory profit, or continuing-vs-total operations) β€” Prudential's ROA is the one case where the ending-balance figure was already the better match and was deliberately left unchanged. Tesco's Asset Turnover and ROCE, and Rentokil's ROCE and Inventory Turnover, were also tested and confirmed to have a different root cause (a one-off disposal-group distortion for Tesco; a differing capital-employed/operating-income definition for Rentokil) rather than this bug. Full per-ratio reasoning is in each <TICKER>_ratios.json file's notes field.
  • Reckitt Benckiser (RKT.L) β€” Gross Margin, EBITDA Margin, ROA, ROIC: StockAnalysis.com's displayed FY2025 figures are implausible (100%+ margins, ROA 47%, ROIC 82%) β€” the source's own page flags these as anomalous. FY2024 data from the same source matched our calculations exactly, so the FY2025 figures were disregarded and our independently calculated values used instead.
  • Compass Group (CPG.L) β€” Gross Margin: StockAnalysis.com shows a 100% gross margin (Gross Profit set equal to Revenue), which is a data artifact β€” Compass's income statement doesn't separately disclose Cost of Sales, so this ratio is marked "Not applicable" rather than reproducing the artifact.
  • Tesco (TSCO.L) β€” Current Ratio, Quick Ratio, Debt to Equity: StockAnalysis.com displays these as negative values, which isn't mathematically possible with positive assets/liabilities. Our positive calculated values (which match the source's magnitude closely) were used, with the sign anomaly noted.
  • Legal & General (LGEN.L) β€” Debt to Equity, Return on Equity: L&G's total equity is very small relative to its Β£582bn balance sheet (most liabilities are pass-through policyholder obligations), making these ratios highly sensitive to the exact equity/debt definitions used. Our figures diverge from StockAnalysis.com's; both are documented rather than reconciled.
  • Rentokil (RTO.L) / BAE Systems (BA.L) β€” Gross Margin: Neither company's income statement separately discloses Cost of Sales/Gross Profit on its face, so Gross Margin is sourced directly from StockAnalysis.com instead of calculated.
  • Sainsbury's (SBRY.L) / Compass Group (CPG.L) β€” EBITDA Margin: Both companies present a condensed cash flow statement without D&A disclosed on its face, so EBITDA is sourced from StockAnalysis.com rather than independently calculated.
  • Aviva / Legal & General / Prudential (insurers) β€” Net Profit Margin, Revenue Growth: StockAnalysis.com uses a broader "Total Revenue" base (Insurance Revenue + Investment Return) that doesn't map to a single line on the primary statements; our ratios use Insurance Revenue alone, so the two are not directly comparable. Net Income itself matches exactly in all cases.

Limitations

  • This dataset is a partial team contribution β€” 12 of the 25 UK companies required by the full assignment. The remaining 13 UK companies and 25 US companies are being produced by other team members and merged separately.
  • 4 of the 12 companies report in USD, not GBP: Prudential, Standard Chartered, Rentokil Initial, and Compass Group. Each ratio JSON's currency field reflects this individually.
  • Fiscal year-ends vary by company: Tesco (late Feb), Sainsbury's (early Mar), Compass Group (30 Sep), and National Grid (31 Mar) do not have calendar-year-end fiscal years β€” date keys in each statement JSON reflect each company's actual fiscal year-end date.
  • "Total Debt" is not comparable across companies β€” the definition varies by what each company discloses (some bundle in lease liabilities, insurers/the bank use a narrower core-borrowings definition excluding policyholder liabilities or customer deposits).
  • 4 companies (Prudential, Standard Chartered, Legal & General, Aviva) are financial institutions with fundamentally different balance sheet structures; standard industrial ratios (Current Ratio, Quick Ratio, Inventory Turnover) were replaced with sector-appropriate substitutes (Insurance Service Margin, Investment Return Yield, Loan to Deposit Ratio, Net Interest Margin, Cost to Income Ratio, Credit Impairment Ratio).
  • Growth ratios for the earlier comparative year (e.g. FY2024 revenue/net-income growth, which needs FY2023 figures) were taken directly from StockAnalysis.com rather than calculated, since only two fiscal years were extracted per company from each annual report (three years for National Grid and Rentokil Initial, where the source PDF itself printed three years).
  • Full company-by-company extraction notes (PDF page references, sign conventions, cash-reconciliation gaps) are in UK_Financial_Ratios_Extraction_Spec.md.

Date of Collection

July 2026 (StockAnalysis.com data current as of early July 2026).

Downloads last month
130