Scripting Guide > Python > Working with JMP Data Tables > Using Operators to Test JMP Objects
발행일 : 03/10/2025

Using Operators to Test JMP Objects

JMP’s Python editor supports equality testing of the jmp.DataTable and jmp.DataTable.Column objects using the == and != operators. This does not check that the objects’ content matches, but that the two objects point to the exact same table or column. Equality testing returns a boolean.

The following example assigns jmp.DataTable objects to several variables and then performs equality checks.

import jmp
 
dt = jmp.open(jmp.SAMPLE_DATA + "Big Class.jmp")
dt2 = jmp.current()
iris = jmp.open(jmp.SAMPLE_DATA + "Iris.jmp")
print( dt == dt2 )
print( dt != iris)

True

True

더 많은 정보를 원하십니까? 질문이 있습니까? JMP 사용자 커뮤니티에서 답변 받기 (community.jmp.com).