Scripting Guide > Python > Working with JMP Data Tables > Using Operators to Test JMP Objects
发布日期: 03/04/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).