DataFrame<R, C>.RemoveColumnsAt Method

Removes the columns at the specified positions from the data frame.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public DataFrame<R, C> RemoveColumnsAt(
	IEnumerable<int> indexes
)

Parameters

indexes  IEnumerable<Int32>
A sequence of zero-based indexes of the columns to remove.

Return Value

DataFrame<R, C>
The current data frame.

Remarks

If indexes is null or empty, this method is a no-op. Removing columns also removes any dataframe-owned metadata for those columns. Remaining columns keep their existing metadata.

Exceptions

ArgumentException

One or more of the members of indexes is less than zero or greater than or equal to the number of columns in the data frame.

See Also