Marks the column at the specified index as containing categorical data.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R, C> MakeCategoricalAt<T>(
int index,
Index<T> categoryIndex
)
Public Function MakeCategoricalAt(Of T) (
index As Integer,
categoryIndex As Index(Of T)
) As DataFrame(Of R, C)
public:
generic<typename T>
DataFrame<R, C>^ MakeCategoricalAt(
int index,
Index<T>^ categoryIndex
)
member MakeCategoricalAt :
index : int *
categoryIndex : Index<'T> -> DataFrame<'R, 'C>
Parameters
- index
- Type: SystemInt32
The zero-based index of the column to make
categorical. - categoryIndex
- Type: Extreme.DataAnalysisIndexT
The category index to use
to encode the values.
Type Parameters
- T
Return Value
Type:
DataFrameR,
C
Exception | Condition |
---|
ArgumentOutOfRangeException | index is less than zero or greater than
or equal to the number of columns in the data frame. |
This method does not change the values in the column.
It changes the representation to one for categorical data.
Reference