{
  "id": 77608,
  "title": "How many rows are in train.csv?",
  "url": "/competitions/LANL-Earthquake-Prediction/discussion/77608",
  "author_name": "",
  "post_date": "2019-01-14T21:38:02.250022200Z",
  "votes": 3,
  "comment_count": 2,
  "views": 0,
  "content": "<p>How many rows are in train.csv?\nIs there a way to find out without loading the whole file?\nThank you</p>",
  "messages": [
    {
      "id": "455951",
      "postDate": "01/14/2019 21:38:02",
      "content": "<p>How many rows are in train.csv?\nIs there a way to find out without loading the whole file?\nThank you</p>",
      "rawMarkdown": "How many rows are in train.csv?\nIs there a way to find out without loading the whole file?\nThank you",
      "votes": null
    },
    {
      "id": "455998",
      "postDate": "01/14/2019 23:14:12",
      "content": "<p>629,145,481 rows</p>\n\n<pre>i=0\nf=open('../input/train.csv')\nfor l in f:\n    i+=1\nprint(i)\n</pre>",
      "rawMarkdown": "629,145,481 rows\n\n<pre>i=0\nf=open('../input/train.csv')\nfor l in f:\n    i+=1\nprint(i)\n</pre>",
      "votes": null
    },
    {
      "id": "456028",
      "postDate": "01/15/2019 02:00:31",
      "content": "<p>In a Kaggle notebook you can use:</p>\n\n<pre><code>! wc -l ../input/train.csv\n</code></pre>\n\n<p>It only takes 7 seconds. You can run the same thing without the exclamation in a Unix-based terminal.</p>",
      "rawMarkdown": "In a Kaggle notebook you can use:\n\n    ! wc -l ../input/train.csv\n\nIt only takes 7 seconds. You can run the same thing without the exclamation in a Unix-based terminal.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 455998,
      "author_name": "jazivxt",
      "author_url": "",
      "post_date": "01/14/2019 23:14:12",
      "content": "<p>629,145,481 rows</p>\n\n<pre>i=0\nf=open('../input/train.csv')\nfor l in f:\n    i+=1\nprint(i)\n</pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 456028,
      "author_name": "jpmiller",
      "author_url": "",
      "post_date": "01/15/2019 02:00:31",
      "content": "<p>In a Kaggle notebook you can use:</p>\n\n<pre><code>! wc -l ../input/train.csv\n</code></pre>\n\n<p>It only takes 7 seconds. You can run the same thing without the exclamation in a Unix-based terminal.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "455951": "How many rows are in train.csv?\nIs there a way to find out without loading the whole file?\nThank you",
    "455998": "629,145,481 rows\n\n<pre>i=0\nf=open('../input/train.csv')\nfor l in f:\n    i+=1\nprint(i)\n</pre>",
    "456028": "In a Kaggle notebook you can use:\n\n    ! wc -l ../input/train.csv\n\nIt only takes 7 seconds. You can run the same thing without the exclamation in a Unix-based terminal."
  },
  "source": "meta"
}