如何使用 IronPython 脚本(最好使用外部名称)在 Spotfire 中创建计算列?

How can I create a Calculated Column in Spotfire with IronPython script (preferably using External Name)?

我有一个数据 table,其中我不能指望列名时时相同,所以我无法以标准方式构建计算列,因为它使用 "Column Name" 属性(这可以改变)。

所以,我想通过 IronPython 使用外部名称构建它们,该名称不会更改,恕不另行通知。

因为您已经知道 ,您可以使用该方法更改列的 Expression 属性,如下所示:

column.Properties["Expression"] = "If([some_column] = 1, 'YES', 'NO')"