{
  "id": 10997,
  "title": "view large csv file.",
  "url": "/competitions/avazu-ctr-prediction/discussion/10997",
  "author_name": "",
  "post_date": "2014-11-20T18:28:35.773Z",
  "votes": null,
  "comment_count": 8,
  "views": 4226,
  "content": "<p>What tools people use to view/edit large csv file? I am using reCsvEditor for the first glance of data file but am wondering if there are alternatives.</p>",
  "messages": [
    {
      "id": "58558",
      "postDate": "11/20/2014 18:28:35",
      "content": "<p>What tools people use to view/edit large csv file? I am using reCsvEditor for the first glance of data file but am wondering if there are alternatives.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "58560",
      "postDate": "11/20/2014 19:05:53",
      "content": "<p>R + ff package</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "58567",
      "postDate": "11/20/2014 19:49:19",
      "content": "<p>Try csvstat (part of csvkit) as a first pass on a csv file to get some column statistics.</p>\n<p>https://csvkit.readthedocs.org/en/0.9.0/</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "59678",
      "postDate": "12/06/2014 14:22:19",
      "content": "<p>head / tail / more should be good enough if you use linux.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "59979",
      "postDate": "12/11/2014 05:13:58",
      "content": "<p>I think head and tail work with | and &nbsp;&gt; &nbsp;will be much better !</p>\n<p>for example :</p>\n<p>&nbsp;head -n1 XXX.csv | tail -n2 &nbsp;&gt;&gt; testfile</p>\n<p>We can see every line in testfile with this way &nbsp;no matter your file is too big or small !&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "59999",
      "postDate": "12/11/2014 13:50:36",
      "content": "<p>Or &quot;cut&quot; if you want to look at just a few columns from the entire dataset</p>\n<p><code>cut -d &quot;,&quot; -f2,6,7,9,10 train.csv &gt; site_or_app.csv<br></code></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "60000",
      "postDate": "12/11/2014 14:14:43",
      "content": "<p>&#20320;&#35201;&#24819;&#30475;&#26576;&#19968;&#21015;&#25110;&#20960;&#21015;&#19978;&#38754;&#30340;&#20540;&#30340;&#35805;&#65292;&#21487;&#20197;&#30452;&#25509;&#22312;&#21018;&#25165;&#30340;&#21629;&#20196;&#19978;&#38754;</p>\n<p>head -n1 XXX.csv | tail -n2 |&nbsp;awk -F ',' '{print $1,$2,$X}' &gt;&gt; testfile.csv&nbsp;</p>\n<p>&#36825;&#26679;&#21487;&#20197;&#30452;&#25509;&#26597;&#30475;&#26576;&#19968;&#21015;&#25110;&#32773;&#26576;&#20960;&#21015;&#65281;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "60127",
      "postDate": "12/13/2014 02:26:29",
      "content": "<p>i wrote a fancy ASCII viewer of categorical variables in csv files.</p>\n<p>you can use it like this:</p>\n<p><code>csvcut -c click,site_domain,app_domain train | ./ctviewer.py -2 20 20<br></code></p>\n<p><a href=\"http://csvkit.readthedocs.org/en/latest/scripts/csvcut.html\">csvcut</a> is included in <a href=\"http://csvkit.readthedocs.org/en/latest/index.html\">csvkit</a>.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "89545",
      "postDate": "08/17/2015 07:50:10",
      "content": "<p>We can use command 'less' in Linux to view content of a big file, e.g. &quot;less train.csv&quot;.</p>",
      "rawMarkdown": "We can use command 'less' in Linux to view content of a big file, e.g. \"less train.csv\".",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 58560,
      "author_name": "konradb",
      "author_url": "",
      "post_date": "11/20/2014 19:05:53",
      "content": "<p>R + ff package</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 58567,
      "author_name": "huibers",
      "author_url": "",
      "post_date": "11/20/2014 19:49:19",
      "content": "<p>Try csvstat (part of csvkit) as a first pass on a csv file to get some column statistics.</p>\n<p>https://csvkit.readthedocs.org/en/0.9.0/</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 59678,
      "author_name": "alisonbw",
      "author_url": "",
      "post_date": "12/06/2014 14:22:19",
      "content": "<p>head / tail / more should be good enough if you use linux.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 59979,
      "author_name": "njumdl2014",
      "author_url": "",
      "post_date": "12/11/2014 05:13:58",
      "content": "<p>I think head and tail work with | and &nbsp;&gt; &nbsp;will be much better !</p>\n<p>for example :</p>\n<p>&nbsp;head -n1 XXX.csv | tail -n2 &nbsp;&gt;&gt; testfile</p>\n<p>We can see every line in testfile with this way &nbsp;no matter your file is too big or small !&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 59999,
      "author_name": "cartographic",
      "author_url": "",
      "post_date": "12/11/2014 13:50:36",
      "content": "<p>Or &quot;cut&quot; if you want to look at just a few columns from the entire dataset</p>\n<p><code>cut -d &quot;,&quot; -f2,6,7,9,10 train.csv &gt; site_or_app.csv<br></code></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 60000,
      "author_name": "njumdl2014",
      "author_url": "",
      "post_date": "12/11/2014 14:14:43",
      "content": "<p>&#20320;&#35201;&#24819;&#30475;&#26576;&#19968;&#21015;&#25110;&#20960;&#21015;&#19978;&#38754;&#30340;&#20540;&#30340;&#35805;&#65292;&#21487;&#20197;&#30452;&#25509;&#22312;&#21018;&#25165;&#30340;&#21629;&#20196;&#19978;&#38754;</p>\n<p>head -n1 XXX.csv | tail -n2 |&nbsp;awk -F ',' '{print $1,$2,$X}' &gt;&gt; testfile.csv&nbsp;</p>\n<p>&#36825;&#26679;&#21487;&#20197;&#30452;&#25509;&#26597;&#30475;&#26576;&#19968;&#21015;&#25110;&#32773;&#26576;&#20960;&#21015;&#65281;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 60127,
      "author_name": "takagiwa",
      "author_url": "",
      "post_date": "12/13/2014 02:26:29",
      "content": "<p>i wrote a fancy ASCII viewer of categorical variables in csv files.</p>\n<p>you can use it like this:</p>\n<p><code>csvcut -c click,site_domain,app_domain train | ./ctviewer.py -2 20 20<br></code></p>\n<p><a href=\"http://csvkit.readthedocs.org/en/latest/scripts/csvcut.html\">csvcut</a> is included in <a href=\"http://csvkit.readthedocs.org/en/latest/index.html\">csvkit</a>.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 89545,
      "author_name": "ducnguyen1911",
      "author_url": "",
      "post_date": "08/17/2015 07:50:10",
      "content": "<p>We can use command 'less' in Linux to view content of a big file, e.g. &quot;less train.csv&quot;.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "58558": "",
    "58560": "",
    "58567": "",
    "59678": "",
    "59979": "",
    "59999": "",
    "60000": "",
    "60127": "",
    "89545": "We can use command 'less' in Linux to view content of a big file, e.g. \"less train.csv\"."
  },
  "source": "meta"
}