Scripting Guide > Python > Working with JMP Data Tables
Publication date: 07/24/2024

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.

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