{
  "id": 355304,
  "title": "nyra_2109_complete column names",
  "url": "/competitions/big-data-derby-2022/discussion/355304",
  "author_name": "",
  "post_date": "2022-09-26T08:23:51.819181500Z",
  "votes": 11,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hi,<br>\nthe 'nyra_2019_complete.csv\" dataset doesn't quite seem to live up to its title. As I see it, the dataset in question is missing column names in the header as well as one column name altogether ('purse').</p>\n<p>To the best of my knowledge and based on column descriptions in the briefing, below this message are the correct column titles in correct order.</p>\n<p>best,</p>\n<h2>Jari</h2>\n<p>df = pd.read_csv('nyra_2019_complete.csv', low_memory=False)</p>\n<p>df.columns =['track_id', 'race_date', 'race_number', 'program_number', 'trakus_index', 'latitude', 'longitude', 'distance_id', 'course_type', 'track_condition', 'run_up_distance', 'race_type', 'post_time', 'purse', 'weight_carried', 'jockey', 'odds', 'position_at_finish']</p>",
  "messages": [
    {
      "id": "1955973",
      "postDate": "09/26/2022 08:23:51",
      "content": "<p>Hi,<br>\nthe 'nyra_2019_complete.csv\" dataset doesn't quite seem to live up to its title. As I see it, the dataset in question is missing column names in the header as well as one column name altogether ('purse').</p>\n<p>To the best of my knowledge and based on column descriptions in the briefing, below this message are the correct column titles in correct order.</p>\n<p>best,</p>\n<h2>Jari</h2>\n<p>df = pd.read_csv('nyra_2019_complete.csv', low_memory=False)</p>\n<p>df.columns =['track_id', 'race_date', 'race_number', 'program_number', 'trakus_index', 'latitude', 'longitude', 'distance_id', 'course_type', 'track_condition', 'run_up_distance', 'race_type', 'post_time', 'purse', 'weight_carried', 'jockey', 'odds', 'position_at_finish']</p>",
      "rawMarkdown": "Hi,\nthe 'nyra_2019_complete.csv\" dataset doesn't quite seem to live up to its title. As I see it, the dataset in question is missing column names in the header as well as one column name altogether ('purse').\n\nTo the best of my knowledge and based on column descriptions in the briefing, below this message are the correct column titles in correct order.\n\nbest,\nJari\n--\n\ndf = pd.read_csv('nyra_2019_complete.csv', low_memory=False)\n\ndf.columns =['track_id', 'race_date', 'race_number', 'program_number', 'trakus_index', 'latitude', 'longitude', 'distance_id', 'course_type', 'track_condition', 'run_up_distance', 'race_type', 'post_time', 'purse', 'weight_carried', 'jockey', 'odds', 'position_at_finish']",
      "votes": null
    },
    {
      "id": "1964952",
      "postDate": "10/01/2022 02:54:52",
      "content": "<p>You're right!!! <br>\n'purse' is omitted in list!!!</p>",
      "rawMarkdown": "You're right!!! \n'purse' is omitted in list!!!",
      "votes": null
    },
    {
      "id": "1979544",
      "postDate": "10/09/2022 14:35:42",
      "content": "<p>Exactly, Purse is omitted from data description <a href=\"https://www.kaggle.com/mojopriest\" target=\"_blank\">@mojopriest</a> </p>",
      "rawMarkdown": "Exactly, Purse is omitted from data description @mojopriest",
      "votes": null
    },
    {
      "id": "1990820",
      "postDate": "10/16/2022 18:44:02",
      "content": "<p>In your code, you are losing 1 row of data. You should do it like this</p>\n<pre><code>cols =['track_id', 'race_date', 'race_number', 'program_number', \n             'trakus_index', 'latitude', 'longitude', 'distance_id', \n             'course_type', 'track_condition', 'run_up_distance', \n             'race_type', 'post_time', 'purse', 'weight_carried', \n             'jockey', 'odds', 'position_at_finish']\n\ndf = pd.read_csv(\"./data/nyra_2019_complete.csv\", names=cols)\n</code></pre>",
      "rawMarkdown": "In your code, you are losing 1 row of data. You should do it like this\n```\ncols =['track_id', 'race_date', 'race_number', 'program_number', \n             'trakus_index', 'latitude', 'longitude', 'distance_id', \n             'course_type', 'track_condition', 'run_up_distance', \n             'race_type', 'post_time', 'purse', 'weight_carried', \n             'jockey', 'odds', 'position_at_finish']\n\ndf = pd.read_csv(\"./data/nyra_2019_complete.csv\", names=cols)\n```",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1964952,
      "author_name": "titan91kr",
      "author_url": "",
      "post_date": "10/01/2022 02:54:52",
      "content": "<p>You're right!!! <br>\n'purse' is omitted in list!!!</p>",
      "votes": null,
      "replies": [
        {
          "id": 1979544,
          "author_name": "pankajkumar2002",
          "author_url": "",
          "post_date": "10/09/2022 14:35:42",
          "content": "<p>Exactly, Purse is omitted from data description <a href=\"https://www.kaggle.com/mojopriest\" target=\"_blank\">@mojopriest</a> </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1990820,
      "author_name": "piotrkitowski",
      "author_url": "",
      "post_date": "10/16/2022 18:44:02",
      "content": "<p>In your code, you are losing 1 row of data. You should do it like this</p>\n<pre><code>cols =['track_id', 'race_date', 'race_number', 'program_number', \n             'trakus_index', 'latitude', 'longitude', 'distance_id', \n             'course_type', 'track_condition', 'run_up_distance', \n             'race_type', 'post_time', 'purse', 'weight_carried', \n             'jockey', 'odds', 'position_at_finish']\n\ndf = pd.read_csv(\"./data/nyra_2019_complete.csv\", names=cols)\n</code></pre>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1955973": "Hi,\nthe 'nyra_2019_complete.csv\" dataset doesn't quite seem to live up to its title. As I see it, the dataset in question is missing column names in the header as well as one column name altogether ('purse').\n\nTo the best of my knowledge and based on column descriptions in the briefing, below this message are the correct column titles in correct order.\n\nbest,\nJari\n--\n\ndf = pd.read_csv('nyra_2019_complete.csv', low_memory=False)\n\ndf.columns =['track_id', 'race_date', 'race_number', 'program_number', 'trakus_index', 'latitude', 'longitude', 'distance_id', 'course_type', 'track_condition', 'run_up_distance', 'race_type', 'post_time', 'purse', 'weight_carried', 'jockey', 'odds', 'position_at_finish']",
    "1964952": "You're right!!! \n'purse' is omitted in list!!!",
    "1979544": "Exactly, Purse is omitted from data description @mojopriest",
    "1990820": "In your code, you are losing 1 row of data. You should do it like this\n```\ncols =['track_id', 'race_date', 'race_number', 'program_number', \n             'trakus_index', 'latitude', 'longitude', 'distance_id', \n             'course_type', 'track_condition', 'run_up_distance', \n             'race_type', 'post_time', 'purse', 'weight_carried', \n             'jockey', 'odds', 'position_at_finish']\n\ndf = pd.read_csv(\"./data/nyra_2019_complete.csv\", names=cols)\n```"
  },
  "source": "meta"
}