Scripting Guide > Extending JMP > Work with Python > Equivalent Data Types for Python Send()
发布日期: 08/07/2020

Equivalent Data Types for Python Send()

Equivalent JMP and Python Data Types for Python Send() 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.

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

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).