Data Frame<R, C>.Rename Columns Method
Renames the columns that satisfy a condition using
the specified key generator.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The current data frame with the specified keys in the column index replaced.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.