Data Frame<R, C>.Rename Columns Method
Renames the columns that satisfy a condition using
the specified key generator.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The current data frame with the specified keys in the column index replaced.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public DataFrame<R, C> RenameColumns(
Func<C, bool> condition,
Func<C, C> keyGenerator
)
Parameters
- condition Func<C, Boolean>
- A predicate that indicates whether a column should be renamed.
- keyGenerator Func<C, C>
- A function that maps old keys to new keys.
Return Value
DataFrame<R, C>The current data frame with the specified keys in the column index replaced.