Analytics.DataFrame.getColumnType()
Signature
String getColumnType(Object dataFrame, int columnNumber)
Description
Returns the column type for the column number specified from the data frame object.
If the column number specified is incorrect returns null value.
Parameters
Name | Type | Description |
dataFrame | Object | A TerrDataFrame type of Object |
columnIndex | int | The column number whose type needs to retrieved from the data frame |
Returns
Type | Description |
String | Returns the column type for the column number specified from the data frame object. If the column number specified is incorrect returns null value. |
Example
Object cust = Analytics.DataFrame.createFrame(names, data);
int columnNumber = 1;
String columnType = Analytics.DataFrame.getColumnType(dataFrame, columnNumber);