For the latest version of JMP Help, visit JMP.com/help.


Scripting Guide > Extending JMP > Work with Python > Equivalent Data Types for Python Send()
Publication date: 11/29/2021

Equivalent Data Types for Python Send()

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.

Table 14.5 Equivalent JMP and Python Data Types for Python Send()

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 Send() Example

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

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).