Jump to content
We've recently updated our Privacy Statement, available here. ×

Script to import contents from text file or csv file

Rasheed Bello

Recommended Posts

To add a csv file as a data table, you can use the below script as reference

from Spotfire.Dxp.Data import *

from Spotfire.Dxp.Data.Import import *



#specify any settings for the file

settings= TextDataReaderSettings()




#datasource name and datasource to add table




Link to comment
Share on other sites

You need to specify the TextDataReaderSettings as needed. For example since this is a CSV file the separator would be a comma so you need to add the below code






In a similar way you can configure the other available settings. You can refer to the above documentation for the available properties that can be configured

Link to comment
Share on other sites

Thanks. can you direct me to a document that breaks down the Spotfire property scripting. The document link above is not helpful. I mean a document with examples that breaks down the syntax like any other program. e.g. where do the Constructors go, Properties, Methods, Events. wWhat is the right syntax


I cannot find any helpful document online.




   from x.x.x.

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...