Data Frame<R, C>.Make Categorical Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Make | Marks the specified column as containing categorical data. |
Make | Marks the specified columns as containing categorical data. |
Make | Marks the specified column as containing categorical data. |
MakeCategorical(C)
Marks the specified column as containing categorical data.
public DataFrame<R, C> MakeCategorical(
C key
)
Parameters
- key C
- The key of the column.
Return Value
DataFrame<R, C>Remarks
This method does not change the values in the column.
It changes the representation to one for categorical data.
Exceptions
Key | A column with key key was not found in the data frame. |
MakeCategorical(C[])
Marks the specified columns as containing categorical data.
public DataFrame<R, C> MakeCategorical(
params C[] keys
)
Parameters
- keys C[]
- A parameter array of keys of the column.
Return Value
DataFrame<R, C>Remarks
This method does not change the values in the columns.
It changes the representation to one for categorical data.
Exceptions
Key | One or more of the keys in keys were not found in the data frame's column index. |
MakeCategorical<T>(C, Index<T>)
Marks the specified column as containing categorical data.
public DataFrame<R, C> MakeCategorical<T>(
C key,
Index<T> categoryIndex
)
Parameters
Type Parameters
- T
Return Value
DataFrame<R, C>Remarks
This method does not change the values in the column.
It changes the representation to one for categorical data.
Exceptions
Key | A column with key key was not found in the data frame. |