<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read/omit  particular columns from a .csv file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86208#M38437</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your feedback I may have to look also at some pre-processing.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2018 09:37:44 GMT</pubDate>
    <dc:creator>David_Morrow</dc:creator>
    <dc:date>2018-12-19T09:37:44Z</dc:date>
    <item>
      <title>Read/omit  particular columns from a .csv file</title>
      <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/85867#M38342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to read in particular columns&amp;nbsp;from a .csv file. The .csv files (which I currently read into jmp and concatonate) have hundreds of columns and hundreds of thousands of lines so the&amp;nbsp;time to read&amp;nbsp;the files into JMP&amp;nbsp;becomes very large and also the JMP file becomes so&amp;nbsp;big that it eventually freezes. As not all of the columns in the CSV are required for analysis&amp;nbsp;I was wondering if a JSL script could target specific columns&amp;nbsp;and therefore reduce the load time (and JMP file size).&amp;nbsp;I have included a very much &amp;nbsp;simplified example below and simply would like to read in the .csv file below but&amp;nbsp;omit the "sample_no" and "scene__max" columns&amp;nbsp;so the jmp table only has 3 columns. (In reality I will be looking to exclude ~100 columns by name)&lt;/P&gt;&lt;P&gt;Any inputs on this would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;measurement_no&lt;/TD&gt;&lt;TD&gt;sample_no&lt;/TD&gt;&lt;TD&gt;level&lt;/TD&gt;&lt;TD&gt;scene__max&lt;/TD&gt;&lt;TD&gt;scene__no_of_targets&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 12:59:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/85867#M38342</guid>
      <dc:creator>David_Morrow</dc:creator>
      <dc:date>2018-12-14T12:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read/omit  particular columns from a .csv file</title>
      <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/85868#M38343</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8608"&gt;@David_Morrow&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In my experience, it is always better to read the file into JMP and perform filtering out of columns or rows after the data is in a JMP data table. This would be especially true when the data you want to exclude is not in a squential order. Most programming languages have optimized csv/xlsx readers built in. Unless you are willing to re-shape your table in such a way that , you can move all the columns to be filtered to one end and read the columns on the other side, I don't think filtering out alternate columns might be really helpful in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Additionally, when you are opening the .csv file using the Open() are you making it a private data table ? Making a data table private while opening a file makes it a lot faster.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:18:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/85868#M38343</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-12-14T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read/omit  particular columns from a .csv file</title>
      <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/85869#M38344</link>
      <description>&lt;P&gt;I looked but did not find anyway to pick and choose which columns to read in from and Excel workbook.&amp;nbsp; There are options where you can select the starting column and ending column&amp;nbsp; number, and starting and ending row number&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Starts on Row( 2 ), Data Starts on Column( 1 ), Data Ends on Row( 0 ), Data Ends on Column( 0 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:21:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/85869#M38344</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-14T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read/omit  particular columns from a .csv file</title>
      <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86208#M38437</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your feedback I may have to look also at some pre-processing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 09:37:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86208#M38437</guid>
      <dc:creator>David_Morrow</dc:creator>
      <dc:date>2018-12-19T09:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read/omit  particular columns from a .csv file</title>
      <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86210#M38439</link>
      <description>&lt;P&gt;If you could generate .XLSX instead of .CSV files, maybe there's a chance to use an ODBC connection to Excel and use JMP's &lt;A href="https://www.jmp.com/support/help/14/query-builder.shtml" target="_self"&gt;Query Builder&lt;/A&gt; (and SQL) to use a subset of the columns for importing?&lt;/P&gt;
&lt;P&gt;And depending on what the possibilities are for restructuring the data (if any), you should be aware of the &lt;A href="https://www.jmp.com/support/help/14/virtually-join-data-tables.shtml#284310" target="_self"&gt;virtual join&lt;/A&gt; in JMP (if you are not already).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 09:58:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86210#M38439</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2018-12-19T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read/omit  particular columns from a .csv file</title>
      <link>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86235#M38448</link>
      <description>&lt;P&gt;from the text import wizard for CSV files, on the 2nd page, mark the column excluded:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="red slash circle" style="width: 609px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14903i43EF57173D420CA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="red slash circle" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;red slash circle&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you import, the script has the code you need to do it again:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Omitted Column" style="width: 668px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14904iFC5B2224117B0DD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Omitted Column" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Omitted Column&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 16:30:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Read-omit-particular-columns-from-a-csv-file/m-p/86235#M38448</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-12-19T16:30:45Z</dc:date>
    </item>
  </channel>
</rss>

