{
  "id": 451333,
  "title": "About submission",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/451333",
  "author_name": "",
  "post_date": "2023-10-28T07:29:37.651493300Z",
  "votes": 2,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi!<br>\nI am stuck with having submission error.<br>\nI am wondering if there is submission data type restrictions.<br>\nMy submission data type is below and I made this by polars data frame.I transform this to csv file.</p>\n<p>row_id    u32<br>\nseries_id    str<br>\nstep     u32<br>\nevent    str<br>\nscore  f32</p>\n<p>Do I have to transfer to pandas dataframe and submit csv file? I found someone was doing like that.</p>",
  "messages": [
    {
      "id": "2502432",
      "postDate": "10/28/2023 07:29:37",
      "content": "<p>Hi!<br>\nI am stuck with having submission error.<br>\nI am wondering if there is submission data type restrictions.<br>\nMy submission data type is below and I made this by polars data frame.I transform this to csv file.</p>\n<p>row_id    u32<br>\nseries_id    str<br>\nstep     u32<br>\nevent    str<br>\nscore  f32</p>\n<p>Do I have to transfer to pandas dataframe and submit csv file? I found someone was doing like that.</p>",
      "rawMarkdown": "Hi!\nI am stuck with having submission error.\nI am wondering if there is submission data type restrictions.\nMy submission data type is below and I made this by polars data frame.I transform this to csv file.\n\nrow_id\tu32\nseries_id\tstr\nstep\t u32\nevent\tstr\nscore  f32\n\nDo I have to transfer to pandas dataframe and submit csv file? I found someone was doing like that.",
      "votes": null
    },
    {
      "id": "2502476",
      "postDate": "10/28/2023 07:50:27",
      "content": "<p>I think your data types are not the problem. You have to write your dataframe to a csv file with 'submission' as its name as in:<br>\n<code>df.to_csv('submission.csv', index=False)</code></p>",
      "rawMarkdown": "I think your data types are not the problem. You have to write your dataframe to a csv file with 'submission' as its name as in:\n`df.to_csv('submission.csv', index=False)`",
      "votes": null
    },
    {
      "id": "2502515",
      "postDate": "10/28/2023 08:22:37",
      "content": "<p>Thank you for replying to me.<br>\nI wrote like this. Is this wrong?<br>\nI remind you that  my submission_df is polars dataframe.<br>\nsubmission_df.write_csv('submission.csv'</p>",
      "rawMarkdown": "Thank you for replying to me.\nI wrote like this. Is this wrong?\nI remind you that  my submission_df is polars dataframe.\nsubmission_df.write_csv('submission.csv'",
      "votes": null
    },
    {
      "id": "2502621",
      "postDate": "10/28/2023 10:22:39",
      "content": "<p>I think you should add a separator for polars as in <code>submission_df.write_csv('submission.csv', separator=',')</code>. If you are writing the csv, then I guess your problem lies somewhere else. </p>",
      "rawMarkdown": "I think you should add a separator for polars as in `submission_df.write_csv('submission.csv', separator=',')`. If you are writing the csv, then I guess your problem lies somewhere else.",
      "votes": null
    },
    {
      "id": "2503048",
      "postDate": "10/28/2023 17:47:13",
      "content": "<p>Thank you for replying <br>\nIt worked and submission succeed.<br>\nThe problem was not neither the data type nor dataframe. There was no record on submission file because training session didn't work well.<br>\nI'm so sorry to take your time.<br>\nAny way, Thank you for sharing tips.</p>",
      "rawMarkdown": "Thank you for replying \nIt worked and submission succeed.\nThe problem was not neither the data type nor dataframe. There was no record on submission file because training session didn't work well.\nI'm so sorry to take your time.\nAny way, Thank you for sharing tips.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2502476,
      "author_name": "awqatak",
      "author_url": "",
      "post_date": "10/28/2023 07:50:27",
      "content": "<p>I think your data types are not the problem. You have to write your dataframe to a csv file with 'submission' as its name as in:<br>\n<code>df.to_csv('submission.csv', index=False)</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 2502515,
          "author_name": "kazumamori",
          "author_url": "",
          "post_date": "10/28/2023 08:22:37",
          "content": "<p>Thank you for replying to me.<br>\nI wrote like this. Is this wrong?<br>\nI remind you that  my submission_df is polars dataframe.<br>\nsubmission_df.write_csv('submission.csv'</p>",
          "votes": null,
          "replies": [
            {
              "id": 2502621,
              "author_name": "awqatak",
              "author_url": "",
              "post_date": "10/28/2023 10:22:39",
              "content": "<p>I think you should add a separator for polars as in <code>submission_df.write_csv('submission.csv', separator=',')</code>. If you are writing the csv, then I guess your problem lies somewhere else. </p>",
              "votes": null,
              "replies": [
                {
                  "id": 2503048,
                  "author_name": "kazumamori",
                  "author_url": "",
                  "post_date": "10/28/2023 17:47:13",
                  "content": "<p>Thank you for replying <br>\nIt worked and submission succeed.<br>\nThe problem was not neither the data type nor dataframe. There was no record on submission file because training session didn't work well.<br>\nI'm so sorry to take your time.<br>\nAny way, Thank you for sharing tips.</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2502432": "Hi!\nI am stuck with having submission error.\nI am wondering if there is submission data type restrictions.\nMy submission data type is below and I made this by polars data frame.I transform this to csv file.\n\nrow_id\tu32\nseries_id\tstr\nstep\t u32\nevent\tstr\nscore  f32\n\nDo I have to transfer to pandas dataframe and submit csv file? I found someone was doing like that.",
    "2502476": "I think your data types are not the problem. You have to write your dataframe to a csv file with 'submission' as its name as in:\n`df.to_csv('submission.csv', index=False)`",
    "2502515": "Thank you for replying to me.\nI wrote like this. Is this wrong?\nI remind you that  my submission_df is polars dataframe.\nsubmission_df.write_csv('submission.csv'",
    "2502621": "I think you should add a separator for polars as in `submission_df.write_csv('submission.csv', separator=',')`. If you are writing the csv, then I guess your problem lies somewhere else.",
    "2503048": "Thank you for replying \nIt worked and submission succeed.\nThe problem was not neither the data type nor dataframe. There was no record on submission file because training session didn't work well.\nI'm so sorry to take your time.\nAny way, Thank you for sharing tips."
  },
  "source": "meta"
}