I am using JSL to import a JSON file using a Panda Split format. When I do this, all columns are imported as Character, when in practice they should be a combination of Character and Numeric. I can write a JSL script convert each to Numeric, but this will also convert the Character columns (and delete their data).
Using JSL, can I detect if a Data Type should be Character or Numeric and convert it accordingly? Or is there a way to do this during the import step? I do not know the columns for a specific file beforehand.
JMP 18.1.1
dt_cols = dt << Get Column Names();
For Each({col, i}, dt_cols,
Try(
// No warning, just converts everything.
As Column(dt, col) << Data Type("Numeric");
As Column(dt, col) << Modeling Type( "Continuous" );
);
);