CtrlK
BlogDocsLog inGet started
Tessl Logo

example-datasets

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.

76

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Example Datasets

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

Usage

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.
Repository
pymc-labs/CausalPy
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.