Scripting Guide > Python > Working with JMP Data Tables > Using Operators to Test JMP Objects
Publication date: 07/08/2024

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

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