Thanks!
import jmp from dt2pandas import dt2df
I was looking at the MAC code
Traceback (most recent call last): File "<string>", line 2, in <module> ModuleNotFoundError: No module named 'dt2pandas'
You can make a copy of dt2pandas.py to same folder where your .jsl file is OR most likely better option, copy it to JMP's site-packages ( Scripting Guide > Python > Creating a Pandas DataFrame from a JMP Data Table).
I don't know how to operate, I have copied it into two directoriesMy script is put in C:\test2.py
The path full path (on windows) is something like this
C:\Users\<user>AppData\Roaming\JMP\JMP\Python\Python311\site-packages (you should be able to access it with %appdata%\JMP\JMP\Python\Python311\site-packages)
Neither was successful.
dt = New Table( "Array - JSL", Add Rows( 10 ),New Column( "A"), New Column("AB")); ABC = [1.61803, 3.14159, 5., 7., 9., 2.1, 0.8, 0.5321, 0.443682, 0.00012]; Column( dt, "A" ) <<Set Values(ABC ); Column( dt, "AB" ) << Set Values( Reverse(ABC)); Python Send(dt); Python Submit ("\[ import jmp from dt2pandas import dt2df DA = dt2df(dt) DA['SUM'] = DA['A'] + DA['AB'] ]\"); dt2 = Python Get(DA); dt2 << New Data View;