Skip to content
Skills Library
Data & analytics · Tool integration

example-datasets

/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.

Repository
CausalPy ↗
Licence
Apache-2.0
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

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.

Original author 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.

How it works

  1. Usage
  2. Available Datasets
  3. Guidance
Original SKILL.md headings · 45 lines, 326 words
SKILL.md preview
---
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.
---

# 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

| Key | Typical use | Description |
| --- | --- | --- |
| `"did"` | Difference-in-differences | Synthetic DiD example data |
| `"banks"` | Difference-in-differences | Historic banking closures data |
| `"its"` | Interrupted time series | Seasonal synthetic ITS data |
| `"its simple"` | Interrupted time series | Simplified synthetic ITS data |
| `"covid"` | Interrupted time series | Deaths and temperature data for England and Wales |
| `"sc"` | Synthetic control | Synthetic control example data |
| `"brexit"` | Synthetic control | UK GDP data for Brexit causal impact |
| `"california_prop99"` | Synthetic control | California Proposition 99 cigarette sales panel |
| `"rd"` | Regression discontinuity | Synthetic RD example data |
| `"drinking"` | Regression discontinuity | Minimum legal drinking age data |
| `"geolift1"` | Geo experiments | Single-treatment geo-lift data |
| `"geolift_multi_cell"` | Geo experiments | Multi-cell geo-lift data |
| `"anova1"` | PrePostNEGD | Pre/post nonequivalent groups example |
| `"risk"` | Instrumental variables | Acemoglu, Johnson, and Robinson institutions data |
| `"schoolReturns"` | Instrumental variables | Schooling returns data |
| `"nhefs"` | Inverse propensity weighting | National Health and Nutrition Examination Survey data |
| `"lalonde"` | Inverse propensity weighting | LaLonde propensity-score data |
| `"nets"` | Inverse propensity weighting | National Supported Work Demonstration data |
| `"pisa18"` | General examples | PISA 2018 sample data |
| `"nevo"` | General examples | Berry, Levinsohn, and Pakes cereal data |
| `"zipcodes"` | Geo experiments | Zipcode-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`.

Versions

The database has no other skills named example-datasets.

Database snapshot: 13.11.2026 · package version 9be5df5ce504 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90causal-detective
    Challenge causal claims through structured threat assessment, counterfactual reasoning, and CausalPy falsification checks. Use when validating whether a causal effect is real or when the user asks "is this effect real?" or "can I trust this result?
  • 100datasets
    List all connected datasets with their status, table counts, and last analysis date. Use this skill whenever the user invokes `/datasets`, or asks questions like "what datasets do I have?", "show me my data sources", "list datasets", "which datasets are connected?", "what data…
  • 100datasets
    List all connected datasets with status, table counts, and last analysis date, and switch the active dataset. Trigger on "/datasets", "/switch-dataset", "what datasets do I have?", "show me my data sources", "list datasets", "which datasets are connected?", "what data is…
  • 100prepare-datasets
    Prepares, validates, splits, uploads, or downloads datasets for Osmosis. Use for concrete data files or platform datasets; experiment design belongs to the planning skills.
  • 100generate-sample-data
    Generate sample/test JSON data matching a migration variable structure (the data definition deployed to Inspire). Use when the user asks for sample data, test data, input data or example JSON for a variable structure, data definition or the current migration project.
  • 100build-data-app
    Build or change a Holistics Data App, one self-contained HTML file that queries the user's datasets through the `Anfra` SDK global and renders them with its own HTML, CSS and JS. Use when the user asks for a Data App, or a custom page, report or interactive analysis over their…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.