DS-1000
Models write Python for 1,000 data science problems from StackOverflow across seven libraries such as NumPy and Pandas. Test cases and API constraints check each answer.
Problems were lightly modified from the StackOverflow originals to reduce memorization.
- Released
- November 2022
- Kind
- Data science and SQL
- Level
- University
- Scored
- Checked automatically
- Answers
- Code
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Single turn
- Items from
- Real work and use
- Refresh
- One fixed set
- Run by
- Anyone
- Strongest model tested
- GPT-4 Turbo Apr 2024 #173 on the capability index
- Last model added
- April 2024
- Updated automatically
- Yes, daily
- Scores refreshed
- November 24th, 2026
In the authors’ words
We introduce DS-1000, a code generation benchmark with a thousand data science problems spanning seven Python libraries, such as NumPy and Pandas. Compared to prior works, DS-1000 incorporates three core features. First, our problems reflect diverse, realistic, and practical use cases since we collected them from StackOverflow. Second, our automatic evaluation is highly specific (reliable) – across all Codex-002-predicted solutions that our evaluation accept, only 1.8% of them are incorrect; we achieve this with multi-criteria metrics, checking both functional correctness by running test cases and surface-form constraints by restricting API usages or keywords. Finally, we proactively defend against memorization by slightly modifying our problems to be different from the original StackOverflow source; consequently, models cannot answer them correctly by memorizing the solutions from pre-training. The current best public system (Codex-002) achieves 43.3% accuracy, leaving ample room for improvement. We release our benchmark at https://ds1000-code-gen.github.io.
GPT-4 Turbo leads with 53.9% among models released by April 2024 GPT-4 Turbo leads with 53.9% among models released by April 2024
Best score per entry from the benchmark's own leaderboard, read on November 24th, 2026. Where a model ran with several settings or harnesses, we keep its best. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders. This view shows only models we track, each at its best.
The newest model with a score here came out in April 2024, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
- GPT-6.2 Astra
-
Gemini 4 Carbon
- GPT-6 Astra
- and 16 more
- 1 GPT-4 Turbo Apr 2024 53.9%
- 2 GPT-4 Jun 2023 51%
- 3 GPT-3.5 Turbo Jan 2024 39.4%
- 4 codex002 38.8%
- 5 GPT-3.5 Turbo Jun 2023 38.6%
Source: Official DS-1000 leaderboard
- 1 GPT-4 Turbo Apr 2024 53.9%
- 2 GPT-4 Jun 2023 51%
- 3 GPT-3.5 Turbo Jan 2024 39.4%
- 4 GPT-3.5 Turbo Jun 2023 38.6%
Source: Official DS-1000 leaderboard
| # | Entry | Score | Setting | Date | Link | Source |
|---|---|---|---|---|---|---|
| 1 | GPT-4 Turbo Apr 2024 | 53.9% | Apr 2024 | github.com | Official leaderboard | |
| 2 | GPT-4 Jun 2023 | 51% | Jun 2023 | github.com | Official leaderboard | |
| 3 | GPT-3.5 Turbo Jan 2024 | 39.4% | Jan 2024 | github.com | Official leaderboard | |
| 4 | codex002 | 38.8% | github.com | Official leaderboard | ||
| 5 | GPT-3.5 Turbo Jun 2023 | 38.6% | Jun 2023 | github.com | Official leaderboard |
| # | Model | Score | Setting | Date | Link | Source |
|---|---|---|---|---|---|---|
| 1 | GPT-4 Turbo Apr 2024 | 53.9% | Apr 2024 | github.com | Official leaderboard | |
| 2 | GPT-4 Jun 2023 | 51% | Jun 2023 | github.com | Official leaderboard | |
| 3 | GPT-3.5 Turbo Jan 2024 | 39.4% | Jan 2024 | github.com | Official leaderboard | |
| 4 | GPT-3.5 Turbo Jun 2023 | 38.6% | Jun 2023 | github.com | Official leaderboard |
Rankings by part
We read 11 parts from the benchmark’s own leaderboard, each ranking models on one part of the test, such as Matplotlib, NumPy and pandas. GPT-4 Turbo leads 9 of them, and GPT-4 leads the other 2. Arrows show how far a model moved from its overall rank among the models we track.
Matplotlib
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 71.6%
- 2 GPT-3.5 Turbo Jan 2024 ↑1 65.8%
- 3 GPT-4 Jun 2023 ↓1 65.2%
- 4 GPT-3.5 Turbo Jun 2023 58.7%
NumPy
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 61.8%
- 2 GPT-4 Jun 2023 56.8%
- 3 GPT-3.5 Turbo Jun 2023 ↑1 36.8%
- 4 GPT-3.5 Turbo Jan 2024 ↓1 32.7%
pandas
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 42.3%
- 2 GPT-4 Jun 2023 41.9%
- 3 GPT-3.5 Turbo Jun 2023 ↑1 33%
- 4 GPT-3.5 Turbo Jan 2024 ↓1 30.2%
PyTorch
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 50%
- 2 GPT-4 Jun 2023 47.1%
- 3 GPT-3.5 Turbo Jan 2024 36.8%
- 4 GPT-3.5 Turbo Jun 2023 29.4%
SciPy
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 50%
- 2 GPT-4 Jun 2023 48.1%
- 3 GPT-3.5 Turbo Jun 2023 ↑1 39.6%
- 4 GPT-3.5 Turbo Jan 2024 ↓1 39.6%
scikit-learn
4 models we track have a score here.
- 1 GPT-4 Jun 2023 ↑1 50.4%
- 2 GPT-4 Turbo Apr 2024 ↓1 50.4%
- 3 GPT-3.5 Turbo Jan 2024 40%
- 4 GPT-3.5 Turbo Jun 2023 35.7%
TensorFlow
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 53.3%
- 2 GPT-4 Jun 2023 46.7%
- 3 GPT-3.5 Turbo Jan 2024 42.2%
- 4 GPT-3.5 Turbo Jun 2023 33.3%
Difficult rewrite
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 40.1%
- 2 GPT-4 Jun 2023 33.3%
- 3 GPT-3.5 Turbo Jun 2023 ↑1 22.2%
- 4 GPT-3.5 Turbo Jan 2024 ↓1 21.6%
Original
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 63.1%
- 2 GPT-4 Jun 2023 59.5%
- 3 GPT-3.5 Turbo Jan 2024 48.7%
- 4 GPT-3.5 Turbo Jun 2023 46.9%
Semantic
4 models we track have a score here.
- 1 GPT-4 Turbo Apr 2024 54.7%
- 2 GPT-4 Jun 2023 52.1%
- 3 GPT-3.5 Turbo Jun 2023 ↑1 37.2%
- 4 GPT-3.5 Turbo Jan 2024 ↓1 35.5%
Surface
4 models we track have a score here.
- 1 GPT-4 Jun 2023 ↑1 42.8%
- 2 GPT-4 Turbo Apr 2024 ↓1 40.1%
- 3 GPT-3.5 Turbo Jan 2024 36.8%
- 4 GPT-3.5 Turbo Jun 2023 33.6%
Everything the board measures
The benchmark’s own leaderboard publishes 24 numbers for each entry: the headline score, 11 parts of the test and 12 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Headline score
- Parts
- Matplotlib
- NumPy
- pandas
- PyTorch
- SciPy
- scikit-learn
- TensorFlow
- Difficult rewrite
- Original
- Semantic
- Surface
- Other measures
- Tasks
- Matplotlib tasks
- NumPy tasks
- pandas tasks
- PyTorch tasks
- SciPy tasks
- scikit-learn tasks
- TensorFlow tasks
- Difficult rewrite tasks
- Original perturbation tasks
- Semantic perturbation tasks
- Surface perturbation tasks
Nothing matches.
- Headline
- Headline score
- Parts
- Matplotlib
- NumPy
- pandas
- PyTorch
- SciPy
- scikit-learn
- TensorFlow
- Difficult rewrite
- Original
- Semantic
- Surface
- Other measures
- Tasks
- Matplotlib tasks
- NumPy tasks
- pandas tasks
- PyTorch tasks
- SciPy tasks
- scikit-learn tasks
- TensorFlow tasks
- Difficult rewrite tasks
- Original perturbation tasks
- Semantic perturbation tasks
- Surface perturbation tasks
Nothing matches.
- Headline
- Headline score
- Parts
- Matplotlib
- NumPy
- pandas
- PyTorch
- SciPy
- scikit-learn
- TensorFlow
- Difficult rewrite
- Original
- Semantic
- Surface
- Other measures
- Tasks
- Matplotlib tasks
- NumPy tasks
- pandas tasks
- PyTorch tasks
- SciPy tasks
- scikit-learn tasks
- TensorFlow tasks
- Difficult rewrite tasks
- Original perturbation tasks
- Semantic perturbation tasks
- Surface perturbation tasks
Nothing matches.
- OpenAI
- not in our model list
2 models have held number one on the official leaderboard since 2023
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official DS-1000 leaderboard
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Source: Official DS-1000 leaderboard
No lab model card reports it yet
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark.
More in Coding
- SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
- LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests.
DeepSeek-V4-Pro 93.5%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Fable 5.2 96.6%
- DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
- SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases.
Seed2.1 Pro 59.8%
- Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance.
DeepSeek V4.1 Flash 3,471
Data audit
9 of 10 checks pass, 1 warning. Look first at the Newest score check. The newest came 2 years ago, in April 2024, for GPT-4 Turbo. Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 1 warning 3 pass 1 note
- Pass Independent runs Scores from the official leaderboard (5 entries).
- Pass Models scored 4 models we track, plus 1 other entry on its leaderboard.
- Warning Newest score The newest came 2 years ago, in April 2024, for GPT-4 Turbo.
- Note Frontier models None of the top 10 has a score. The strongest tested is GPT-4 Turbo (#173).
- Pass Headroom The best is 53.9%, under 85%, so it still separates models.
Leaderboard import 3 pass
- Pass Importer We read the board on github.com: 4 rows for models we track and 1 other entry at the last read.
- Pass Last read November 24th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.