{
  "id": 240251,
  "title": "Error While reading the Test Data!!",
  "url": "/competitions/siim-covid19-detection/discussion/240251",
  "author_name": "",
  "post_date": "2021-05-19T04:00:03.021879200Z",
  "votes": 1,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hello Kagglers, <br>\nI am using the following code block to get the submission data from the test folder, But when I looked into the data after this, lot of ids  where unable to find the path. Given below,</p>\n<pre><code>test_df = pd.read_csv('../input/siim-covid19-detection/sample_submission.csv')\n\ndef image_path(row):\n    study_path = dataset_path/'test'/row.id.split(\"_\")[0]\n    for i in get_dicom_files(study_path):\n        return i \n\ntest_df['image_path'] = test_df.apply(image_path, axis=1)\n</code></pre>\n<table>\n<thead>\n<tr>\n<th></th>\n<th>id</th>\n<th>PredictionString</th>\n<th>image_path</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1214</td>\n<td>557a70442928_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1215</td>\n<td>36141cda67ad_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1216</td>\n<td>2413a23a5477_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1217</td>\n<td>c263b1e9aa64_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1218</td>\n<td>4fe0444d7fc5_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>…</td>\n<td>…</td>\n<td>…</td>\n<td>…</td>\n<td></td>\n</tr>\n<tr>\n<td>2472</td>\n<td>46719b856de1_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2473</td>\n<td>31c07523a69a_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2474</td>\n<td>f77d7d1aebab_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2475</td>\n<td>ccc5b63ca96d_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2476</td>\n<td>5e8ac1fe2b82_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n</tbody>\n</table>",
  "messages": [
    {
      "id": "1314245",
      "postDate": "05/19/2021 04:00:03",
      "content": "<p>Hello Kagglers, <br>\nI am using the following code block to get the submission data from the test folder, But when I looked into the data after this, lot of ids  where unable to find the path. Given below,</p>\n<pre><code>test_df = pd.read_csv('../input/siim-covid19-detection/sample_submission.csv')\n\ndef image_path(row):\n    study_path = dataset_path/'test'/row.id.split(\"_\")[0]\n    for i in get_dicom_files(study_path):\n        return i \n\ntest_df['image_path'] = test_df.apply(image_path, axis=1)\n</code></pre>\n<table>\n<thead>\n<tr>\n<th></th>\n<th>id</th>\n<th>PredictionString</th>\n<th>image_path</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1214</td>\n<td>557a70442928_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1215</td>\n<td>36141cda67ad_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1216</td>\n<td>2413a23a5477_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1217</td>\n<td>c263b1e9aa64_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>1218</td>\n<td>4fe0444d7fc5_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>…</td>\n<td>…</td>\n<td>…</td>\n<td>…</td>\n<td></td>\n</tr>\n<tr>\n<td>2472</td>\n<td>46719b856de1_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2473</td>\n<td>31c07523a69a_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2474</td>\n<td>f77d7d1aebab_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2475</td>\n<td>ccc5b63ca96d_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n<tr>\n<td>2476</td>\n<td>5e8ac1fe2b82_image</td>\n<td>none 1 0 0 1 1</td>\n<td>None</td>\n<td></td>\n</tr>\n</tbody>\n</table>",
      "rawMarkdown": "Hello Kagglers, \nI am using the following code block to get the submission data from the test folder, But when I looked into the data after this, lot of ids  where unable to find the path. Given below,\n\n```\ntest_df = pd.read_csv('../input/siim-covid19-detection/sample_submission.csv')\n\ndef image_path(row):\n    study_path = dataset_path/'test'/row.id.split(\"_\")[0]\n    for i in get_dicom_files(study_path):\n        return i \n        \ntest_df['image_path'] = test_df.apply(image_path, axis=1)\n```\n\n|      |                 id | PredictionString | image_path |   |\n|-----:|-------------------:|-----------------:|-----------:|---|\n| 1214 | 557a70442928_image | none 1 0 0 1 1   | None       |   |\n| 1215 | 36141cda67ad_image | none 1 0 0 1 1   | None       |   |\n| 1216 | 2413a23a5477_image | none 1 0 0 1 1   | None       |   |\n| 1217 | c263b1e9aa64_image | none 1 0 0 1 1   | None       |   |\n| 1218 | 4fe0444d7fc5_image | none 1 0 0 1 1   | None       |   |\n|  ... | ...                | ...              | ...        |   |\n| 2472 | 46719b856de1_image | none 1 0 0 1 1   | None       |   |\n| 2473 | 31c07523a69a_image | none 1 0 0 1 1   | None       |   |\n| 2474 | f77d7d1aebab_image | none 1 0 0 1 1   | None       |   |\n| 2475 | ccc5b63ca96d_image | none 1 0 0 1 1   | None       |   |\n| 2476 | 5e8ac1fe2b82_image | none 1 0 0 1 1   | None       |   |",
      "votes": null
    },
    {
      "id": "1406920",
      "postDate": "08/01/2021 10:20:59",
      "content": "<p>where you able to find why this was the case?</p>",
      "rawMarkdown": "where you able to find why this was the case?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1406920,
      "author_name": "gokulprakash",
      "author_url": "",
      "post_date": "08/01/2021 10:20:59",
      "content": "<p>where you able to find why this was the case?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1314245": "Hello Kagglers, \nI am using the following code block to get the submission data from the test folder, But when I looked into the data after this, lot of ids  where unable to find the path. Given below,\n\n```\ntest_df = pd.read_csv('../input/siim-covid19-detection/sample_submission.csv')\n\ndef image_path(row):\n    study_path = dataset_path/'test'/row.id.split(\"_\")[0]\n    for i in get_dicom_files(study_path):\n        return i \n        \ntest_df['image_path'] = test_df.apply(image_path, axis=1)\n```\n\n|      |                 id | PredictionString | image_path |   |\n|-----:|-------------------:|-----------------:|-----------:|---|\n| 1214 | 557a70442928_image | none 1 0 0 1 1   | None       |   |\n| 1215 | 36141cda67ad_image | none 1 0 0 1 1   | None       |   |\n| 1216 | 2413a23a5477_image | none 1 0 0 1 1   | None       |   |\n| 1217 | c263b1e9aa64_image | none 1 0 0 1 1   | None       |   |\n| 1218 | 4fe0444d7fc5_image | none 1 0 0 1 1   | None       |   |\n|  ... | ...                | ...              | ...        |   |\n| 2472 | 46719b856de1_image | none 1 0 0 1 1   | None       |   |\n| 2473 | 31c07523a69a_image | none 1 0 0 1 1   | None       |   |\n| 2474 | f77d7d1aebab_image | none 1 0 0 1 1   | None       |   |\n| 2475 | ccc5b63ca96d_image | none 1 0 0 1 1   | None       |   |\n| 2476 | 5e8ac1fe2b82_image | none 1 0 0 1 1   | None       |   |",
    "1406920": "where you able to find why this was the case?"
  },
  "source": "meta"
}