DS-1000

1,000 data-science coding problems across seven Python libraries, perturbed from real StackOverflow questions and checked by execution plus surface-form API constraints.

unassessed

This page is a discovery lead. Nobody has yet assessed it against the catalogue contract, so it carries no disposition. Absence of evidence here is not evidence of staleness.
Categorycoding
Subcategorydata-science code generation grounded in real StackOverflow problems
Page statusactive
Metricpass@1 (execution-based, plus surface-form constraint checks)
Directionhigher_is_better
Unit%
Dataset size1000
Dataset licenceCC BY-SA 4.0 (GitHub repository)
PublisherUniversity of Hong Kong, with co-authors at Stanford, UC Berkeley, the University of Washington, Meta AI and Carnegie Mellon University

What it measures

DS-1000 tests whether a model can write short, realistic Python code that calls data-science libraries correctly, rather than solving abstract algorithmic puzzles. Each of the 1,000 problems asks for a snippet using one of seven libraries -- NumPy, Pandas, Matplotlib, Scikit-learn, SciPy, PyTorch or TensorFlow -- to do something a real practitioner asked how to do on Stack Overflow, such as reshaping a dataframe or configuring a specific plot. Problems are deliberately perturbed from their original Stack Overflow source (reworded, given a different but equally hard requirement, or made harder) specifically so a model cannot simply reproduce a memorised Stack Overflow answer verbatim and still pass.

Task format

Python code generation from a natural-language problem plus surrounding code context (either completion-style or insertion-style), one function or snippet per problem.

Models reporting this benchmark

No model card in ModelSpec reports this benchmark yet.

Data

This page as JSON · Edit on GitHub