Jump to content

TextDataReaderSettings question

Sundaram Sridharan

Recommended Posts

I need to read in a CSV/TXT file and change data types using ironpython. The TextReaderSettings class has one method called SetDataType and looks like


let's say I have 5 columns and I made guesses as to what the data types are (by reading a few rows) - I have put the data types in a list:

list = ["Integer","String","Real",....]

is there a way to set up a loop to assign data types using this list if I try something like

dType = "DataType."+list[0]

and then try


it gives me error as it expects a data type as second argument whereas I am giving it a string.

How do I implement this

are there other ways of forcing spotfire to guess data types automatically through IronPython

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