Scripting Guide > Python > Working with JMP Data Tables
发布日期: 03/04/2025

Working with JMP Data Tables

Indexing in Python

Python in JMP uses Python’s zero-based indexing. The first element in a sequence has an index of 0, the second element has an index of 1, and so on.

The following example prints the value of each cell from the first column of a JMP data table to the log.

import jmp
 
dt = jmp.open(jmp.SAMPLE_DATA + 'Big Class.jmp')
 
for i in dt[0]:
	print(i)

Every name from the first column of Big Class.jmp prints to the log.

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