Data Frame<R, C>.Column Index 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#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
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
| Dimension | The length of value is not equal to the number of columns in the data frame. |