diff --git a/FantasyFootball/README.md b/FantasyFootball/README.md new file mode 100644 index 0000000..81f2739 --- /dev/null +++ b/FantasyFootball/README.md @@ -0,0 +1,60 @@ +# Fantasy Football Data + +Sample data for the [AI at Your Draft Table](https://deephaven.io/blog/2026-08-25-fantasy-football-draft-ai/) blog post. Contains 2026 preseason fantasy football projections and average draft position (ADP) data for PPR scoring. + +## Files + +| File | Rows | Description | +|------|------|-------------| +| `projections.csv` | 120 | Consensus fantasy point projections | +| `adp.csv` | 120 | Average draft position from major platforms | + +## Schema + +**`projections.csv`** + +| Column | Type | Description | +|--------|------|-------------| +| `player` | string | Player name | +| `team` | string | NFL team abbreviation | +| `position` | string | Position (QB, RB, WR, TE) | +| `projected_points` | float | Projected fantasy points (PPR scoring) | +| `injury_status` | string | Injury designation if applicable | + +**`adp.csv`** + +| Column | Type | Description | +|--------|------|-------------| +| `player` | string | Player name | +| `adp` | float | Average draft position | +| `adp_rank` | int | Overall ADP rank | + +## Usage + +```python +from deephaven import read_csv + +projections = read_csv( + "https://media.githubusercontent.com/media/deephaven/examples/main/FantasyFootball/projections.csv" +) + +adp = read_csv( + "https://media.githubusercontent.com/media/deephaven/examples/main/FantasyFootball/adp.csv" +) + +# Join and calculate value +draft_board = projections.natural_join( + adp, on=["player"], joins=["adp", "adp_rank"] +).update_view([ + "value_score = projected_points / adp_rank" +]).sort_descending("value_score") +``` + +## Notes + +- Projections are illustrative samples based on 2026 preseason consensus. +- For live data, use [FantasyPros API](https://www.fantasypros.com/api-data/), [Sleeper](https://docs.sleeper.com/), or ESPN projections. + +## Source and license + +This dataset was created for demonstrative purposes. Deephaven makes no claim of its authenticity or its accuracy. diff --git a/FantasyFootball/adp.csv b/FantasyFootball/adp.csv new file mode 100644 index 0000000..4f03efd --- /dev/null +++ b/FantasyFootball/adp.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:394889b1cbd51b1015cf6be548bee5cad2e3d88d16cbd5c1c058b57a41a5593a +size 2715 diff --git a/FantasyFootball/projections.csv b/FantasyFootball/projections.csv new file mode 100644 index 0000000..f1e4291 --- /dev/null +++ b/FantasyFootball/projections.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:094b59b14ce7925f76f893f5ab2d6f90a13d01e6e1185cd8aa319689638018f6 +size 3605