<< All versions

Skill v1.0.1

currentAutomated scan100/100
pymc-labs/causalpy/example-datasets

+2 new

──Details
PublishedNovember 6, 2026 at 01:20 AM
Content Hashsha256:133df1d5277a8245...
Git SHA9655a2772fbd
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 2.3 KB)
SKILL.md2.3 KBactive
SKILL.md · 51 lines · 2.3 KB

name: example-datasets description: Load built-in CausalPy example datasets for demos, tutorials, tests, and quick causal-analysis prototypes. Use when the user needs sample data or asks which demo datasets are available. metadata: version: "1.0.1"


Example Datasets

CausalPy ships with built-in datasets that can be loaded with cp.load_data(...).

Usage

python
import causalpy as cp
df = cp.load_data("did")

Available Datasets

KeyTypical useDescription
"did"Difference-in-differencesSynthetic DiD example data
"banks"Difference-in-differencesHistoric banking closures data
"its"Interrupted time seriesSeasonal synthetic ITS data
"its simple"Interrupted time seriesSimplified synthetic ITS data
"covid"Interrupted time seriesDeaths and temperature data for England and Wales
"sc"Synthetic controlSynthetic control example data
"brexit"Synthetic controlUK GDP data for Brexit causal impact
"california_prop99"Synthetic controlCalifornia Proposition 99 cigarette sales panel
"rd"Regression discontinuitySynthetic RD example data
"drinking"Regression discontinuityMinimum legal drinking age data
"geolift1"Geo experimentsSingle-treatment geo-lift data
"geolift_multi_cell"Geo experimentsMulti-cell geo-lift data
"anova1"PrePostNEGDPre/post nonequivalent groups example
"risk"Instrumental variablesAcemoglu, Johnson, and Robinson institutions data
"schoolReturns"Instrumental variablesSchooling returns data
"nhefs"Inverse propensity weightingNational Health and Nutrition Examination Survey data
"lalonde"Inverse propensity weightingLaLonde propensity-score data
"nets"Inverse propensity weightingNational Supported Work Demonstration data
"pisa18"General examplesPISA 2018 sample data
"nevo"General examplesBerry, Levinsohn, and Pakes cereal data
"zipcodes"Geo experimentsZipcode-level geo-experiment data

Guidance

  • Prefer these bundled datasets for examples and docs instead of fetching data at runtime.
  • For method selection, use choosing-causalpy-methods after identifying the data shape.
  • For fitting and plotting, use running-causalpy-experiments.
← v1.0.0All versions