Table 14.5 shows what JMP data types can be exchanged with Python using the Python Send() function. Sending lists or associative arrays to Python recursively examines each element of the list or associative array and sends each base JMP data type. Nested lists and associative arrays are supported.
JMP Data Type |
Python Data Type |
---|---|
Boolean |
Boolean |
Data Table |
Pandas.DataFrame |
Associative Array |
Dictionary |
Numeric |
Float |
Matrix |
Float Matrix |
List |
List |
String |
Unicode String |
Python Init();
X = 1;
Python Send( X );
S = "Report Title";
Python Send( S );
M = [1 2 3, 4 5 6, 7 8 9];
Python Send( M );
Python Submit( "\[
print(X)
print(S)
print(M)
]\" );
Python Term();
1.0
Report Title
[[ 1. 2. 3.]
[ 4. 5. 6.]
[ 7. 8. 9.]]
0