Scripting Guide > Extending JMP > Work with Python > Equivalent Data Types for Python Send()
发布日期: 09/18/2023

Equivalent Data Types for Python Send()

表 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

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