{
  "id": 425992,
  "title": "Where is the 'test' folder found?",
  "url": "/competitions/bengaliai-speech/discussion/425992",
  "author_name": "nofreewill42",
  "post_date": "2023-07-21T08:51:47.338000",
  "votes": 0,
  "comment_count": 7,
  "views": 0,
  "content": "<p>I'm using the following code, trying to create an empty submission:<br>\n<strong>file_paths = Path('test').iterdir()</strong></p>\n<pre><code> pathlib  Path\nfile_paths = Path().iterdir()\nmp3_paths = [p  p  file_paths   p.is_dir()  p.suffix==]\n pandas  pd\nsubmissions = []\n p  mp3_paths:\n    prediction = {: p.stem, : }\n    submissions.append(prediction)\nsubmission_df = pd.DataFrame(submissions)\nsubmission_df.to_csv(, index=)\n</code></pre>\n<p>But I get the error:<br>\nFileNotFoundError: [Errno 2] <strong>No such file or directory: 'test'</strong></p>\n<p><strong>Where is the test folder?</strong></p>",
  "messages": [
    {
      "id": 2352865,
      "postDate": "2023-07-21T10:07:03.993Z",
      "content": "<p>the answer is: <strong>/kaggle/input/bengaliai-speech/test_mp3s</strong></p>",
      "rawMarkdown": "the answer is: **/kaggle/input/bengaliai-speech/test_mp3s**"
    },
    {
      "id": 2352780,
      "postDate": "2023-07-21T08:51:47.340Z",
      "content": "<p>I'm using the following code, trying to create an empty submission:<br>\n<strong>file_paths = Path('test').iterdir()</strong></p>\n<pre><code> pathlib  Path\nfile_paths = Path().iterdir()\nmp3_paths = [p  p  file_paths   p.is_dir()  p.suffix==]\n pandas  pd\nsubmissions = []\n p  mp3_paths:\n    prediction = {: p.stem, : }\n    submissions.append(prediction)\nsubmission_df = pd.DataFrame(submissions)\nsubmission_df.to_csv(, index=)\n</code></pre>\n<p>But I get the error:<br>\nFileNotFoundError: [Errno 2] <strong>No such file or directory: 'test'</strong></p>\n<p><strong>Where is the test folder?</strong></p>",
      "rawMarkdown": "I'm using the following code, trying to create an empty submission:\n**file_paths = Path('test').iterdir()**\n```python\nfrom pathlib import Path\nfile_paths = Path('test').iterdir()\nmp3_paths = [p for p in file_paths if not p.is_dir() and p.suffix=='.mp3']\nimport pandas as pd\nsubmissions = []\nfor p in mp3_paths:\n    prediction = {'id': p.stem, 'predicted': ''}\n    submissions.append(prediction)\nsubmission_df = pd.DataFrame(submissions)\nsubmission_df.to_csv('submission.csv', index=False)\n```\n\nBut I get the error:\nFileNotFoundError: [Errno 2] **No such file or directory: 'test'**\n\n**Where is the test folder?**"
    },
    {
      "id": 2352816,
      "postDate": "2023-07-21T09:30:35.447Z",
      "rawMarkdown": "",
      "isDeleted": true,
      "replies": [
        {
          "id": 2352832,
          "postDate": "2023-07-21T09:38:45.713Z",
          "content": "<p>Thanks but I already asked chatgpt.<br>\nI'm asking what's the /path/to/test</p>",
          "rawMarkdown": "Thanks but I already asked chatgpt.\nI'm asking what's the /path/to/test",
          "replies": [
            {
              "id": 2352847,
              "postDate": "2023-07-21T09:56:59.357Z",
              "content": "<p>oops my bad , <br>\nby the way you can check test directory/folder by just writing <br>\n%%bash <br>\ntree /kaggle<br>\nor still if you are not able to find path to test then ,<br>\n/kaggle/input/bengaliai-speech/test_mp3s <br>\n:)</p>",
              "rawMarkdown": "oops my bad , \nby the way you can check test directory/folder by just writing \n%%bash \ntree /kaggle\nor still if you are not able to find path to test then ,\n/kaggle/input/bengaliai-speech/test_mp3s \n:)",
              "votes": 1
            },
            {
              "id": 2352864,
              "postDate": "2023-07-21T10:06:49.153Z",
              "content": "<p>Wow, you're right, and thank you very much!</p>",
              "rawMarkdown": "Wow, you're right, and thank you very much!"
            },
            {
              "id": 2352876,
              "postDate": "2023-07-21T10:13:53.430Z",
              "content": "<p>it's ok bro :)</p>",
              "rawMarkdown": "it's ok bro :)"
            }
          ]
        }
      ]
    },
    {
      "id": 2352812,
      "postDate": "2023-07-21T09:29:34.147Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2352865,
      "author_name": "nofreewill42",
      "author_url": "",
      "post_date": "2023-07-21T10:07:03.993000",
      "content": "<p>the answer is: <strong>/kaggle/input/bengaliai-speech/test_mp3s</strong></p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2352816,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-07-21T09:30:35.447000",
      "content": "",
      "votes": 0,
      "replies": [
        {
          "id": 2352832,
          "author_name": "nofreewill42",
          "author_url": "",
          "post_date": "2023-07-21T09:38:45.713000",
          "content": "<p>Thanks but I already asked chatgpt.<br>\nI'm asking what's the /path/to/test</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2352847,
              "author_name": "Ayush Kumar",
              "author_url": "",
              "post_date": "2023-07-21T09:56:59.357000",
              "content": "<p>oops my bad , <br>\nby the way you can check test directory/folder by just writing <br>\n%%bash <br>\ntree /kaggle<br>\nor still if you are not able to find path to test then ,<br>\n/kaggle/input/bengaliai-speech/test_mp3s <br>\n:)</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2352864,
              "author_name": "nofreewill42",
              "author_url": "",
              "post_date": "2023-07-21T10:06:49.153000",
              "content": "<p>Wow, you're right, and thank you very much!</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2352876,
              "author_name": "Ayush Kumar",
              "author_url": "",
              "post_date": "2023-07-21T10:13:53.430000",
              "content": "<p>it's ok bro :)</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2352812,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-07-21T09:29:34.147000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2352865": "the answer is: **/kaggle/input/bengaliai-speech/test_mp3s**",
    "2352780": "I'm using the following code, trying to create an empty submission:\n**file_paths = Path('test').iterdir()**\n```python\nfrom pathlib import Path\nfile_paths = Path('test').iterdir()\nmp3_paths = [p for p in file_paths if not p.is_dir() and p.suffix=='.mp3']\nimport pandas as pd\nsubmissions = []\nfor p in mp3_paths:\n    prediction = {'id': p.stem, 'predicted': ''}\n    submissions.append(prediction)\nsubmission_df = pd.DataFrame(submissions)\nsubmission_df.to_csv('submission.csv', index=False)\n```\n\nBut I get the error:\nFileNotFoundError: [Errno 2] **No such file or directory: 'test'**\n\n**Where is the test folder?**",
    "2352816": "",
    "2352812": ""
  }
}