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

Equivalent Data Types for Python Get()

表 14.6 shows which JMP data types can be exchanged with Python using the Python Get() function. Getting lists from Python recursively examines each element of the list and gets each base Python data type. Nested lists are supported.

Table 14.6 Equivalent Python and JMP Data Types for Python Get()

Python Data Type

JMP Data Type

Array

Numeric Matrix

Date and time

Numeric

Pandas.DataFrame

Data Table

Dictionary

Associative Array

Graph

Picture Object

Integer

Integer

List

List of converted Python data types

Matrix

Numeric Matrix

Set

List

Unicode String

String

Python Get() Example

Python Init();
x1 = [1, 2, 3];
Python Send( x1 );
x2 = Python Get( x1 );
Show( x1, x2 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
Python Send( dt1 );
dt2 = Python Get( dt1 );
dt2 << New Data View;
Close( dt1 );
Python Term();
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).