Skip to main content

US Bank Data for Python

A reproducible U.S. bank dataset for your class, notebook or app in one call.

Load a frozen quarter of FDIC institution financials, select a cohort, or fetch several banks across the same reporting window. Exports carry units, population, missing-data coverage and original source evidence.

PyPI · Cohort guide · Metrics · Notebooks · Public source edition

Install

Python 3.10 or newer:

python -m pip install us-bank-data==0.2.0

No account, API key, paid service or background telemetry. The base package reuses the public banksonsale-data standard-library engine. pandas, Polars, PyArrow and DuckDB are optional; us-bank-data[teaching]==0.2.0 installs the libraries used in all classroom lessons.

Start offline with a complete quarter

from usbankdata import snapshot

data = snapshot(quarter="2026Q2", edition="2026-q2-r1")
print(len(data.rows))  # 4313
data.export("banks.csv")  # also writes banks.manifest.json

The bundle contains 4,313 institution financial records for June 30, 2026, including noninsured institutions and insured U.S. branches of foreign institutions. It is not an insured-only or active-only population, or a list of banks for sale. It is a frozen edition, not a latest-data claim. Original source responses and retrieval dates are included; this call works offline.

Select banks at an explicit quarter

cohort = data.select(
    states=["NC"], bank_classes=["N", "SM", "NM", "SB", "SI", "SL"],
    min_assets_usd=100_000_000, max_assets_usd=3_000_000_000,
)
print(cohort.certs)
print(cohort.document["coverage"])
cohort.export("nc-bank-cohort.json")

The asset minimum is inclusive and maximum exclusive. The manifest records the selection anchor and filters. Missing values stay missing; zero stays zero. These research filters are examples, not an official peer group. select() requires a single-quarter input and supports legitimate empty results.

Align several banks across the same quarters

from usbankdata import panel

history = panel(certs=[628, 3510, 58665], through="2026Q2", quarters=8)
history.export("bank-history.json")

This makes live FDIC requests for up to 100 explicit banks and 40 quarters. The end quarter is required. Pagination, retries and timeouts are bounded. Every selected bank has one row per requested quarter; absent filings are explicit and never filled with older reports. There is no current-active selection filter. load_sample_cohort() provides three offline eight-quarter interface samples; those banks are not a matched or representative peer group.

Use your existing tools

frame = cohort.to_pandas()        # optional us-bank-data[pandas]
polars_frame = cohort.to_polars() # optional us-bank-data[polars]
cohort.export("banks.parquet")    # optional us-bank-data[parquet]

CSV includes an evidence sidecar. JSON is self-contained and reloads with BankCohort.load(). Parquet embeds the manifest under usbankdata; pandas uses frame.attrs["usbankdata"]. Generic rewrites can discard that evidence. The SQL lesson queries the same Parquet with Polars and DuckDB and checks that counts, total assets and missingness agree.

Run a lesson

Notebook Task Open
Snapshot screener Select a quarter-wide population and derive a funding measure. Colab
Cohort history Compare three offline samples across eight aligned quarters. Colab
Polars and DuckDB Use lazy dataframe queries and SQL on the same Parquet. Colab
One-bank financials Inspect units and export a legacy single-bank sample. Colab
Same-quarter comparison Compare samples using standard-library SQL. Colab

Notebooks include population notes and attribution; new cohort lessons include exercises. CI executes the notebooks against the release. Colab has its own account requirements; local lessons work offline after installation.

Understand the observations

Fourteen selected fields cover assets, total/domestic deposits, equity, intangibles, net loans, estimated uninsured deposits, core deposits, CET1, leverage, ROA/ROE, offices and employees.

  • _usd is U.S. dollars, converted once from source USD-thousands.
  • _pct is percent: 12.5 means 12.5%. ROA/ROE are already annualized.
  • CET1 is RBCT1CER; leverage is RBC1AAJ. They are distinct.
  • Null, reported zero, negative values and absent filings remain distinct.
  • CERT identifies an institution, not its listed parent, ticker or branch.

Live data may revise past reports. Identity labels reflect retrieval time, not a historical identity graph. Reporting quarters and archived retrievals do not establish original-filing availability for backtests. Coverage is selected FDIC financials, not all Call Reports, NCUA or every type of bank data.

Existing single-bank code continues to work

from usbankdata import bank, load_sample, search

sample = load_sample(58665)
matches = search("Live Oak", state="NC")  # inspect candidates and choose a CERT
live = bank(58665).financials(quarters=8, through="2026Q2")

Legacy banksonsale_data imports and single-bank evidence remain unchanged. The independent OpenBB extension is available from source; it is not bundled into or endorsed by OpenBB.

Source and reuse

Original source: FDIC BankFind Suite. Code: MIT. Original compilation and metadata: CC BY 4.0. Credit US Bank Data; BanksOnSale compilation and metadata, sourced from FDIC BankFind Suite, with edition, report date and dataset ID. No FDIC endorsement is implied.

See data licensing, cohort contract, legacy contract, CITATION.cff and CONTRIBUTING.md.

Metadata

Release files for us-bank-data 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for us-bank-data 0.2.0
File Size Uploaded Provenance Actions
us_bank_data-0.2.0.tar.gz 889.9 kB With provenance Details for us_bank_data-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for us-bank-data 0.2.0
File Interpreter ABI Platform Actions
us_bank_data-0.2.0-py3-none-any.whl Python 3 none any Details for us_bank_data-0.2.0-py3-none-any.whl

Total release size: 1.8 MB

Release files / us_bank_data-0.2.0.tar.gz

Download URL us_bank_data-0.2.0.tar.gz
Size 889.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6e72549eba7f86e28913bb5aa508dbc68590767496bc6f77c78d3d1be3297964
BLAKE2b-256 checksum
How to use checksums
f332e5b74e371630ca4aa39e61cca7c571be2ddc834afe97b5f48ccd46ab29e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / us_bank_data-0.2.0-py3-none-any.whl

Download URL us_bank_data-0.2.0-py3-none-any.whl
Size 889.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
088d28968bbc1f3bd695f0313e52b1392f311f61d03631570659fccf71b06daf
BLAKE2b-256 checksum
How to use checksums
3b832948e7aee210396466bc6b73f8525d0a2120018cfb8c9d81716483f8dd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for us-bank-data 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for us_bank_data-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page