API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
Access dataset files directly from scripts, code, or AI agents.
Dataset Files
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
/fivethirtyeight/candy-power-ranking/
https://datahub.io/fivethirtyeight/candy-power-ranking/_r/-/README.md
https://datahub.io/fivethirtyeight/candy-power-ranking/_r/-/data/candy-data.csv
https://datahub.io/fivethirtyeight/candy-power-ranking/_r/-/datapackage.json
Key Files
Start with these files — they give you everything you need to understand and access the dataset.
datapackage.json— metadata & schema
https://datahub.io/fivethirtyeight/candy-power-ranking/_r/-/datapackage.json
README.md— documentation
https://datahub.io/fivethirtyeight/candy-power-ranking/_r/-/README.md
Typical Usage
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Previews
candy-data
Loading data...
Schema
| name | type | format |
|---|---|---|
| competitorname | string | default |
| chocolate | integer | default |
| fruity | integer | default |
| caramel | integer | default |
| peanutyalmondy | integer | default |
| nougat | integer | default |
| crispedricewafer | integer | default |
| hard | integer | default |
| bar | integer | default |
| pluribus | integer | default |
| sugarpercent | number | default |
| pricepercent | number | default |
| winpercent | number | default |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
candy-data | 5.18 kB | 30 days ago | candy-data |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 1 | 5.18 kB | csv | about 1 month ago | FiveThirtyEight - Candy Power Ranking |
Candy Power Ranking
This folder contains the data behind the story The Ultimate Halloween Candy Power Ranking.
candy-data.csv includes attributes for each candy along with its ranking. For binary variables, 1 means yes, 0 means no.
The data contains the following fields:
| Header | Description |
|---|---|
| chocolate | Does it contain chocolate? |
| fruity | Is it fruit flavored? |
| caramel | Is there caramel in the candy? |
| peanutalmondy | Does it contain peanuts, peanut butter or almonds? |
| nougat | Does it contain nougat? |
| crispedricewafer | Does it contain crisped rice, wafers, or a cookie component? |
| hard | Is it a hard candy? |
| bar | Is it a candy bar? |
| pluribus | Is it one of many candies in a bag or box? |
| sugarpercent | The percentile of sugar it falls under within the data set. |
| pricepercent | The unit price percentile compared to the rest of the set. |
| winpercent | The overall win percentage according to 269,000 matchups. |
This dataset was scraped from FiveThirtyEight - candy-power-ranking