Data Frame<R, C>.Remove Columns Method
Removes all columns selected by a column selector from the data frame.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
C#
The current data frame.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
public DataFrame<R, C> RemoveColumns(
ColumnSelector selector
)Parameters
- selector ColumnSelector
- The selector that identifies columns to remove.
Return Value
DataFrame<R, C>The current data frame.
Remarks
The selector is resolved against a current schema snapshot and inspects schema metadata only. Resolved columns are distinct and ordered by schema order. If selector resolves to no columns, this method is a no-op.
Removing a column also removes any dataframe-owned metadata for that column. Remaining columns keep their original relative order and retain their existing metadata.
Exceptions
| Argument | selector is null. |
| Key | selector contains an explicit key that is not present in the current schema. |
| Invalid | selector contains typed keys or a typed key predicate whose key type does not match the data frame column-key type. |