DataFrame<R, C>.MakeCategoricalAt Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

MakeCategoricalAt(Int32) Marks the column at the specified index as containing categorical data.
MakeCategoricalAt<T>(Int32, Index<T>) Marks the column at the specified index as containing categorical data.

MakeCategoricalAt(Int32)

Marks the column at the specified index as containing categorical data.
C#
public DataFrame<R, C> MakeCategoricalAt(
	int index
)

Parameters

index  Int32
The zero-based index of the column to make categorical.

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

ArgumentOutOfRangeException

index is less than zero or greater than or equal to the number of columns in the data frame.

MakeCategoricalAt<T>(Int32, Index<T>)

Marks the column at the specified index as containing categorical data.
C#
public DataFrame<R, C> MakeCategoricalAt<T>(
	int index,
	Index<T> categoryIndex
)

Parameters

index  Int32
The zero-based index of the column to make categorical.
categoryIndex  Index<T>
The category index to use to encode the values.

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

ArgumentOutOfRangeException

index is less than zero or greater than or equal to the number of columns in the data frame.

See Also