<?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: Transposing very large data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38284#M22408</link>
    <description>&lt;P&gt;Yes,&amp;nbsp;&lt;A href="http://www.jmp.com/support/help/Accessing_Data_Values.shtml#790448" target="_blank"&gt;http://www.jmp.com/support/help/Accessing_Data_Values.shtml#790448&lt;/A&gt;&amp;nbsp;has an example like this:&lt;/P&gt;
&lt;P&gt;dt:age[10] = 20; // set the value of age in row 10 to 20&lt;/P&gt;
&lt;P&gt;You might want to make a prototype 2-line table with the column names (and data types!) you need and use the "get script" from the red triangle menu. You can then paste that script into your own code. &amp;nbsp;In the example above, [10] is for row 10; you might use two assignments for [1] and [2]. &amp;nbsp;The 20 is for a numeric column; your column is character if the astring variable is going to be stored in it.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 01:22:55 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2017-04-19T01:22:55Z</dc:date>
    <item>
      <title>Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38280#M22404</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a very large data file, (20+ million rows, 10 columns) that I need to transpose. Unfortunately, jmp is not capable of executing such large file quickly or efficiently. I found that jmp is able to manipulate data in text format much easily. I have tried all options of save/open as .txt but no&amp;nbsp;vail..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help transposing this table either in txt format or data table (list, array etc.)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need the following example table to look like the output below,&lt;U&gt; without using the "transpose" function&lt;/U&gt; as it won't work for million+ rows: ''&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Data table&lt;/U&gt;:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;col1 &amp;nbsp; &amp;nbsp; col2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; l&lt;/P&gt;
&lt;P&gt;&amp;nbsp; s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; w&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j&lt;/P&gt;
&lt;P&gt;&amp;nbsp; t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sdf&lt;/P&gt;
&lt;P&gt;&amp;nbsp; t&lt;/P&gt;
&lt;P&gt;&amp;nbsp; o&lt;/P&gt;
&lt;P&gt;&amp;nbsp; p&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Desired output (either as a txt file or a table with only 1 col and 2 rows):&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;col1, a,s,4,t,t,o,p&lt;/P&gt;
&lt;P&gt;col2,l,w,j,sdf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please and Thank you :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 21:15:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38280#M22404</guid>
      <dc:creator>sgourshe</dc:creator>
      <dc:date>2017-04-18T21:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38281#M22405</link>
      <description>&lt;P&gt;I think you have non-numeric columns so you can't use a matrix, You might make your string value as a concatenation of items in a list, and you can get a list from a character column with the &amp;lt;&amp;lt;getvalues message.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;alist = dt:a&amp;lt;&amp;lt;getvalues; show(nitems(alist));
astring = concatItems(alist,","); show(length(astring),left(astring,100));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;N Items(alist) = 21000000;&lt;BR /&gt;Length(astring) = 207635028;&lt;BR /&gt;Left(astring, 100) = "1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP has a limit of 2 billion characters for a string. You might be getting close.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:02:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38281#M22405</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-04-18T22:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38282#M22406</link>
      <description>Super thank you for quick reply! Easier than I thought. :)&lt;/img&gt;&lt;BR /&gt;Anyway, I can assign a particular cell in a table to to be this astring?&lt;BR /&gt;such that I have a table that has (taking the original example I used) 1 column and 2 rows looking like the following:&lt;BR /&gt;                Column1 &lt;BR /&gt;Row1:    a,s,4,t,t,o,p&lt;BR /&gt;Row2:    l,w,j,sdf</description>
      <pubDate>Tue, 18 Apr 2017 23:22:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38282#M22406</guid>
      <dc:creator>sgourshe</dc:creator>
      <dc:date>2017-04-18T23:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38284#M22408</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;A href="http://www.jmp.com/support/help/Accessing_Data_Values.shtml#790448" target="_blank"&gt;http://www.jmp.com/support/help/Accessing_Data_Values.shtml#790448&lt;/A&gt;&amp;nbsp;has an example like this:&lt;/P&gt;
&lt;P&gt;dt:age[10] = 20; // set the value of age in row 10 to 20&lt;/P&gt;
&lt;P&gt;You might want to make a prototype 2-line table with the column names (and data types!) you need and use the "get script" from the red triangle menu. You can then paste that script into your own code. &amp;nbsp;In the example above, [10] is for row 10; you might use two assignments for [1] and [2]. &amp;nbsp;The 20 is for a numeric column; your column is character if the astring variable is going to be stored in it.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 01:22:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38284#M22408</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-04-19T01:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38389#M22464</link>
      <description>&lt;P&gt;Very cool thanks. Although useful, I was particularly wanting to get only the string value into the cell. Unfortunately the string includes extra comma seperations for empty cells.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ie. given there are 2 columns, the 1st col has 10 rows and the 2nd col only has data for 5 rows. When I implement the string concate that you mentioned above I get the string value for second col as astring = "a,s,r,w,d,,,,,,"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am particulary interested to get only "a,s,r,w,d", excluding the&amp;nbsp;extra comma seperations. Any directions you can point me to? I'd great appreciate it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shiv&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:21:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38389#M22464</guid>
      <dc:creator>sgourshe</dc:creator>
      <dc:date>2017-04-21T18:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38390#M22465</link>
      <description>&lt;P&gt;Lots of choices. Perhaps something like this to post-process the string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regex("a,b,c,,,,,,,", ",*$", "", GLOBALREPLACE)&lt;BR /&gt;/*:&lt;/P&gt;
&lt;P&gt;"a,b,c"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some character manipulation info:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.jmp.com/support/help/Work_with_Character_Functions.shtml" target="_blank"&gt;http://www.jmp.com/support/help/Work_with_Character_Functions.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Uncharted/JSL-Character-String-Functions/ba-p/21323" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/JSL-Character-String-Functions/ba-p/21323&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Uncharted/Regex/ba-p/21008" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Regex/ba-p/21008&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Uncharted/Pattern-Matching/ba-p/21005" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Pattern-Matching/ba-p/21005&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Uncharted/Back-Reference/ba-p/21267" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Back-Reference/ba-p/21267&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:46:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38390#M22465</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-04-21T18:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing very large data table</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38461#M22514</link>
      <description>&lt;P&gt;That is great! Thank you Craige for great support!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:04:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/38461#M22514</guid>
      <dc:creator>sgourshe</dc:creator>
      <dc:date>2017-04-24T20:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/107715#M39220</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7172"&gt;@Paul_Nelson&lt;/a&gt;, building on GM1's latest post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;running this script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log();
Names Default To Here( 1 );
Python Init(Path("/Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib"), 
    Use Python Version("3.7")	
);

Python Submit("\[

print("Done importing modules")

]\");

Python Term();     &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives the following output in the log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-01-22 at 5.30.40 PM.png" style="width: 207px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15188iAECD755A663A5A53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-01-22 at 5.30.40 PM.png" alt="Screen Shot 2019-01-22 at 5.30.40 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running this JSL script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log();
Names Default To Here( 1 );
Python Init(Path("/Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib"), 
    Use Python Version("3.7")	
);

Python Submit("\[

import numpy as np
print("Done importing modules")

]\");

Python Term();      &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives the following output to the log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-01-23 at 9.52.26 AM.png" style="width: 279px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15203iCEA0F4DAD691A286/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-01-23 at 9.52.26 AM.png" alt="Screen Shot 2019-01-23 at 9.52.26 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GIven the succesfull exit code, I think this error is very unclear. JMP/JSL seems to not know where to find modules to import?? Any help is greatly appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 18:07:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/107715#M39220</guid>
      <dc:creator>ctsc</dc:creator>
      <dc:date>2019-01-23T18:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Python for JMP 14?</title>
      <link>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/107716#M39221</link>
      <description>When you specify the python location such as&lt;BR /&gt;Python Init(Path("/Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib"),&lt;BR /&gt;    Use Python Version("3.7")&lt;BR /&gt;);&lt;BR /&gt;You are stating that this is the specific version of Python you want to use, located where you specified.  If you call Ptyhon Init() with no arguments, or fewer arguments such as Python Init(Use Python Version(“3.7”) ), JMP does more searching to try to locate an appropriate Python.  On the Mac you will likely always need to specify at least the version since Apple supplies Python 2.7 with the Operating System.  We are continuing to work on improving the Python support in JMP.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jan 2019 18:19:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transposing-very-large-data-table/m-p/107716#M39221</guid>
      <dc:creator>Paul_Nelson</dc:creator>
      <dc:date>2019-01-23T18:19:19Z</dc:date>
    </item>
  </channel>
</rss>

