Marks the specified column as containing categorical data.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R, C> MakeCategorical<T>(
C key,
Index<T> categoryIndex
)
Public Function MakeCategorical(Of T) (
key As C,
categoryIndex As Index(Of T)
) As DataFrame(Of R, C)
public:
generic<typename T>
DataFrame<R, C>^ MakeCategorical(
C key,
Index<T>^ categoryIndex
)
member MakeCategorical :
key : 'C *
categoryIndex : Index<'T> -> DataFrame<'R, 'C>
Parameters
- key
- Type: C
The key of the column. - categoryIndex
- Type: Extreme.DataAnalysisIndexT
The category index to use
to encode the values.
Type Parameters
- T
Return Value
Type:
DataFrameR,
C
This method does not change the values in the column.
It changes the representation to one for categorical data.
Reference