Jump to content

How to change the column data type in the script with IronPython


L Zhong

Recommended Posts

  • 2 years later...

Here is an example:

from Spotfire.Dxp.Data.Transformations import ExpressionTransformation,ColumnSelection

 

table = Document.Data.Tables['myTableName']

t = ExpressionTransformation()

t.ColumnReplacements.Add(

'myColumnName',

'real([myColumnName])',

ColumnSelection('myColumnName')

)

table.AddTransformation(t)

print("Done Changing Datatypes....")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...