DataFrame<R, C>.ColumnIndex Property

Gets or sets the column index of the data frame.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public Index<C> ColumnIndex { get; set; }

Property Value

Index<C>

Remarks

When setting the column index, the length of the new index must be the same as the number of columns in the data frame. Otherwise a DimensionMismatchException is thrown.

Replacing the column index relabels the existing columns. Dataframe-owned column metadata is remapped by ordinal so it follows the same column positions to the new keys.

Exceptions

DimensionMismatchException

The length of value is not equal to the number of columns in the data frame.

See Also