benchmarks.wiki / Public workspace
DS-1000
Code / Science
DS-1000 builds 1,000 data-science problems from real StackOverflow questions across seven libraries including NumPy, Pandas and Matplotlib. The problems are perturbed so that recalling the original answer does not solve them.
ds-1000
Full text: eligible public problems include text, images and discussion.
Reference links
At a glance
What a problem looks like
A data-science problem with the surrounding code context stated in the prompt. The reference code and the checking context are not part of the prompt.
How it is scored
Correctness is decided by executing the candidate inside the problem’s own code context, so the reference code the source ships is not a graded answer; it stays in restricted storage.
Metric: accuracy (the source paper reports the best public system at 43.3%)
Why it is hard
The problems come from people who were actually stuck, and the perturbations mean the remembered StackOverflow answer is usually close but wrong.
Cite
@article{lai2022ds1000,
title={DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation},
author={Yuhang Lai and Chengxi Li and Yiming Wang and Tianyi Zhang and Ruiqi Zhong and Luke Zettlemoyer and Scott Wen-tau Yih and Daniel Fried and Sida Wang and Tao Yu},
journal={arXiv preprint arXiv:2211.11501},
year={2022}
}Discussion
Contribute
Share a reproduction, report an evaluation issue, or suggest a correction to this benchmark overview.
Tasks
Whole public benchmark.
- Public problems
- 200
- Formats
- code (200)
- Problems with images
- 0
- Answer availability
- Answer published by the source (200)
- Configs
- default (200)
- Splits
- test (200)
- Awaiting a first discussion
- 200
- Problems with a discussion
- 0
- Public contributions
- 0
Provenance and terms
Pinned source revisions, newest first:
4416080ac5cb80bdf7576aefb8f9a0b4d5426a44· acquired 2026-09-12 · release4346a40c861b4416080ac5cb80bdf7576aefb8f9a0b4d5426a44· acquired 2026-09-12 · releaseb578ca080b3c
- I have the following DataFrame:
Answer published by the source
- I have the following DataFrame:
Answer published by the source
- Let's say I have a pandas DataFrame containing names like so:
Answer published by the source
- I have been struggling with removing the time zone info from a column in a…
Answer published by the source
- I am trying to extract rows from a Pandas dataframe using a list of row names,…
Answer published by the source
- I have a set of objects and their positions over time. I would like to get the…
Answer published by the source
- My sample df has four columns with NaN values. The goal is to concatenate all…
Answer published by the source
- I am trying to find duplicates rows in a pandas dataframe.
Answer published by the source
- I have been struggling with removing the time zone info from a column in a…
Answer published by the source
- I am performing a query on a DataFrame:
Answer published by the source
- I have a Pandas DataFrame that looks something like:
Answer published by the source
- I have
Answer published by the source
- Let's say I have 5 columns.
Answer published by the source
- Let's say I have 5 columns.
Answer published by the source
- Having a pandas data frame as follow:
Answer published by the source
- How do I find all rows in a pandas DataFrame which have the max value for count…
Answer published by the source
- How do I find all rows in a pandas DataFrame which have the max value for count…
Answer published by the source
- I'm looking to map the value in a dict to one column in a DataFrame where the…
Answer published by the source
- I'm looking to map the value in a dict to one column in a DataFrame where the…
Answer published by the source
- I am trying to groupby counts of dates per month and year in a specific output.…
Answer published by the source
- I have a dataframe, e.g:
Answer published by the source
- I have a dataframe that looks like this:
Answer published by the source
- Was trying to generate a pivot table with multiple "values" columns. I know I…
Answer published by the source
- Was trying to generate a pivot table with multiple "values" columns. I know I…
Answer published by the source
- I have a data frame with one (string) column and I'd like to split it into two…
Answer published by the source
- Given a pandas DataFrame, how does one convert several binary columns (where 1…
Answer published by the source
- So I have a dataframe that looks like this:
Answer published by the source
- So I have a dataframe that looks like this:
Answer published by the source
- So I have a dataframe that looks like this:
Answer published by the source
- I have pandas df with say, 100 rows, 10 columns, (actual data is huge). I also…
Answer published by the source
- I have a dataframe with numerous columns (≈30) from an external source (csv…
Answer published by the source
- I am trying to clean up a Excel file for some further research. Problem that I…
Answer published by the source
- I have following pandas dataframe :
Answer published by the source
- Sample dataframe:
Answer published by the source
- The title might not be intuitive--let me provide an example. Say I have df,…
Answer published by the source
- The title might not be intuitive--let me provide an example. Say I have df,…
Answer published by the source
- I've a data frame that looks like the following
Answer published by the source
- I have following pandas dataframe :
Answer published by the source
- I am using Pandas to get a dataframe like this:
Answer published by the source
- I have a table like this.
Answer published by the source
- I have a dataset :
Answer published by the source
- I'm wondering if there is a simpler, memory efficient way to select a subset of…
Answer published by the source
- I have a pandas dataframe that looks like the following:
Answer published by the source
- I have a simple dataframe which I would like to bin for every 3 rows.
Answer published by the source
- I have the following dataframe:
Answer published by the source
- This is my data frame
Answer published by the source
- I have a dataset :
Answer published by the source
- I have multi-index df as follows
Answer published by the source
- I have a data frame like below
Answer published by the source
- I have a data frame like below
Answer published by the source