Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ParserError
Message:      Error tokenizing data. C error: Expected 1 fields in line 7, saw 3

Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 246, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 4196, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2533, in _head
                  return next(iter(self.iter(batch_size=n)))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2711, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2249, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/csv/csv.py", line 198, in _generate_tables
                  for batch_idx, df in enumerate(csv_file_reader):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1843, in __next__
                  return self.get_chunk()
                         ^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1985, in get_chunk
                  return self.read(nrows=size)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1923, in read
                  ) = self._engine.read(  # type: ignore[attr-defined]
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 234, in read
                  chunks = self._reader.read_low_memory(nrows)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "pandas/_libs/parsers.pyx", line 850, in pandas._libs.parsers.TextReader.read_low_memory
                File "pandas/_libs/parsers.pyx", line 905, in pandas._libs.parsers.TextReader._read_rows
                File "pandas/_libs/parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
                File "pandas/_libs/parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
                File "pandas/_libs/parsers.pyx", line 2061, in pandas._libs.parsers.raise_parser_error
              pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 7, saw 3

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.

calcfi-open-data

Figshare DOI Kaggle DOI OSF DOI License: CC BY 4.0

Free, daily-refreshed financial and macro datasets — every series cited to a primary source, every CSV under CC BY 4.0.

Live source + JSON API: https://calcfi.app/developers Per-series HTML pages with charts: https://calcfi.app/data OpenAPI 3.1 spec: https://calcfi.app/api/insights/openapi.json

This repo mirrors the read-only data exposed by CalcFi so it can be consumed as a Frictionless Data Package, mirrored to dataset registries, and version-controlled with full git history.

What's in here

34 series across 11 categories, each in its own subdir under datasets/:

Category Series
Mortgage rates 30-year-fixed, 15-year-fixed, 10-year-treasury
Interest rates federal-funds-rate, prime-rate, 2-year-treasury
Inflation cpi, pce
Employment unemployment-rate, labor-force-participation, avg-hourly-earnings
Energy crude-oil-wti, crude-oil-brent, us-regular-gas-price
FX usd-eur, usd-gbp, usd-jpy
Crypto bitcoin, ethereum, solana
Deposit rates savings-national-rate, money-market-national-rate, cd-3mo, cd-12mo, cd-60mo
Credit credit-card-apr, auto-loan-rate-48mo, personal-loan-rate-24mo
Commodities copper-price, corn-price
Global (World Bank) us-gdp-per-capita, world-inflation, world-unemployment, eurozone-gdp-per-capita

Every subdir contains:

  • data.csv — full history (date, value, unit), provenance headers preserved
  • datapackage.jsonFrictionless Data Package descriptor, DataHub-compatible
  • README.md — series-specific source, license, citation, and CalcFi live URL

Quick start

# Full mortgage rate history
curl https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/30-year-fixed/data.csv

# CPI history
curl https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/cpi/data.csv

# Latest single value (live API, daily-refreshed)
curl https://calcfi.app/api/rates/30-year-fixed
import pandas as pd
url = "https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/30-year-fixed/data.csv"
df = pd.read_csv(url, comment="#", parse_dates=["date"])
print(df.tail())
library(readr)
df <- read_csv("https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/30-year-fixed/data.csv",
               comment = "#")

Primary sources

All values pass through verbatim from these official sources. No transformations or imputations are applied.

Refresh cadence

A GitHub Actions workflow (.github/workflows/refresh.yml) runs daily at 06:00 UTC, pulls the latest history from CalcFi's read-only API, and commits any changes. Most series update at their natural cadence:

  • Daily: Treasury yields, FX, oil, crypto, fed funds
  • Weekly: 30Y / 15Y mortgage, gas price
  • Monthly: CPI, PCE, unemployment, hourly earnings, commodities
  • Quarterly: credit card APR, personal loan
  • Annual: World Bank series

License

This repository's structure, scripts, and README are released under CC0 1.0. The data itself in datasets/*/data.csv is licensed CC BY 4.0 — attribution requested.

How to attribute:

Data via CalcFi, sourced from [primary source]. CC BY 4.0.

Primary source terms also apply where data is mirrored from FRED, BLS, World Bank, etc. — consult the per-dataset README.md for the canonical source link.

Why this exists

Most personal-finance and macro data APIs are paid, rate-limited behind a credit card, or wrap a single primary source you could hit yourself. CalcFi is a free personal-finance calculator platform that consumes these primary sources for its tools; this repo exposes the same data as a clean, version-controlled, Frictionless-compliant dataset bundle so it can be mirrored to DataHub, Hugging Face, Kaggle, and Zenodo.

Visualizations built on this dataset

Interactive Hugging Face Spaces (Gradio, 10 total):

Long-form Observable notebooks:

CodePen calculator demos (vanilla JS, MIT)view all 6 in collection:

Live SQL endpoint (Datasette): https://calcfi-open-data.vercel.app/ — full SQL query interface + JSON/CSV API over the same 117,956 observations

Cloudflare Pages mini-trackers (live FRED/BLS data, MIT):

Python package: pip install calcfidatahttps://pypi.org/project/calcfidata/ — pandas-based client for all 34 series.

Static documentation site: calcfi-open-data-4a2bc1.gitlab.io — full catalog, methodology, citation guide.

Author profiles (Person entity graph):

Permanent DOIs

Mirror surfaces: Hugging Face (you are here) · GitHub · GitLab.

Mirroring this to other registries

This repo is structured so each subdir under datasets/ is a complete Frictionless Data Package. To publish on DataHub.io, point at this repo and set "Root Dir" to e.g. datasets/30-year-fixed. Repeat per dataset.

For Hugging Face Datasets, Kaggle, Zenodo, or re3data — see docs/mirroring.md (TBD; PRs welcome).

Contributing

This is a mirror, not the source of truth. To propose data changes, request a new series, or correct a primary-source citation, open an issue or PR. For live calculator + API issues, see https://calcfi.app/about.

Citation

Salmisto, J. (2026). CalcFi Open Data: 34 Free CC-BY Financial and Macro Time Series Mirrored from Primary Sources [Dataset]. Figshare. https://doi.org/10.6084/m9.figshare.32332290

Where else this dataset lives

The same 117,956 observations are available across multiple query surfaces — pick the one that fits your workflow:

Query surfaces

  • Datasette (live SQL) — browser SQL + JSON API + CSV export with 5 saved queries
  • data.world — SQL via data.world's browser interface, full SQLite + zip bundle download
  • DoltHub — git-for-data, versioned tables, queryable from any MySQL client
  • MotherDuck — cloud DuckDB, attach with ATTACH 'md:_share/calcfi_open_data_share/...'

Package mirrors

Documentation

  • Read the Docs — full reference: install, quick start, series catalog, API, methodology, citation
  • GitLab Pages — documentation hub + methodology working paper

Permanent DOIs (citable)

Source mirrors

Visualizations built on this data

Live tools built on this data

  • calcfi.app — 300+ free personal-finance calculators, every tool cited to a primary source

Maintained by Jere Salmisto — founder of calcfi.app.

Downloads last month
70

Spaces using iizy/calcfi-open-data 10