Skip to content

Missing Data #32

Description

@siddjain

It seems simfin does not have data for all tickers. is that true? below is example where I could not find data for ALL (Allstate)

Code Example

 
>>> import pandas as pd
>>> df = pd.read_csv('~/simfin_data/us-balance-quarterly.csv', sep=';')
>>> for t in ['AAPL', 'MSFT', 'ALL']:
...   rows = df[df['Ticker'] == t].sort_values('Publish Date')
...   if rows.empty:
...     print(t, 'not found'); continue
...   r = rows.iloc[-1]
...   ltd, std, eq = r['Long Term Debt'], r['Short Term Debt'], r['Total Equity']
...   ltd = 0 if pd.isna(ltd) else ltd
...   std = 0 if pd.isna(std) else std
...   print(f"{t}: LTD={ltd:,.0f} STD={std:,.0f} Equity={eq:,.0f} D/E={(ltd+std)/eq:.3f} (as of {r['Publish Date']})")
...
AAPL: LTD=91,775,000,000 STD=9,923,000,000 Equity=65,830,000,000 D/E=1.545 (as of 2025-08-01)
MSFT: LTD=40,152,000,000 STD=2,999,000,000 Equity=343,479,000,000 D/E=0.126 (as of 2025-07-30)
ALL not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-errorError in simfin's data

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions