{"task": {"agent_timeout": 1800, "task": "779", "verifier_timeout": 1800, "instruction": "# 779: DS-1000 Task\n\n## Prompt\nProblem:\nI have the following data frame:\nimport pandas as pd\nimport io\nfrom scipy import stats\ntemp=u\"\"\"probegenes,sample1,sample2,sample3\n1415777_at Pnliprp1,20,0.00,11\n1415805_at Clps,17,0.00,55\n1415884_at Cela3b,47,0.00,100\"\"\"\ndf = pd.read_csv(io.StringIO(temp),index_col='probegenes')\ndf\nIt looks like this\n                     sample1  sample2  sample3\nprobegenes\n1415777_at Pnliprp1       20        0       11\n1415805_at Clps           17        0       55\n1415884_at Cela3b         47        0      100\nWhat I want to do is too perform row-zscore calculation using SCIPY. AND I want to show data and zscore together in a single dataframe. At the end of the day. the result will look like:\n                               sample1  sample2  sample3\nprobegenes\n1415777_at Pnliprp1   data     20\t\t  0\t\t\t11\n\t\t\t\t\tzscore\t  1.18195176 -1.26346568  0.08151391\n1415805_at Clps\t\t  data     17\t\t  0\t\t\t55\n\t\t\t\t\tzscore   -0.30444376 -1.04380717  1.34825093\n1415884_at Cela3b\t  data     47\t\t  0\t\t\t100\n\t\t\t\t\tzscore   -0.04896043 -1.19953047  1.2484909\nA:\n<code>\nimport pandas as pd\nimport io\nfrom scipy import stats\n\ntemp=u\"\"\"probegenes,sample1,sample2,sample3\n1415777_at Pnliprp1,20,0.00,11\n1415805_at Clps,17,0.00,55\n1415884_at Cela3b,47,0.00,100\"\"\"\ndf = pd.read_csv(io.StringIO(temp),index_col='probegenes')\n</code>\nresult = ... # put solution in this variable\nBEGIN SOLUTION\n<code>\n\n## What to do\n- Edit `solution/solution.py` so the code passes the DS-1000 tests.\n- Do not access the internet or install new packages; required libraries are preinstalled in the Docker image.\n- Run tests locally via `bash tests/test.sh`.\n\n## Notes\n- Keep the variable names/signatures implied by the prompt/code_context.\n- The evaluator uses the original DS-1000 `code_context` (`test_execution` / `test_string`).\n", "memory": "", "runnable": false, "difficulty": "", "language": "", "cpus": "", "instruction_truncated": false, "category": "", "compose": false, "has_solution": true, "oracle": null, "docker_image": "ds1000:latest", "taskset": "ds1000", "tags": []}, "runs": []}