Data Frame<R, C>.Rename Column Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Rename | Renames the specified column. |
Rename | Renames the specified column. |
RenameColumn(C, C)
Renames the specified column.
public DataFrame<R, C> RenameColumn(
C oldKey,
C newKey
)
Parameters
Return Value
DataFrame<R, C>The current data frame with the specified key in the column index replaced.
Exceptions
Key | The key oldKey was not found in the column index. |
Invalid | The key newKey already exists in the column index. |
RenameColumn(IEnumerable<C>, IEnumerable<C>)
Renames the specified column.
public DataFrame<R, C> RenameColumn(
IEnumerable<C> oldKeys,
IEnumerable<C> newKeys
)
Parameters
- oldKeys IEnumerable<C>
- A sequence of the current column keys.
- newKeys IEnumerable<C>
- A sequence of the corresponding new column keys.
Return Value
DataFrame<R, C>The current data frame with the specified keys in the column index replaced.
Exceptions
Key | One or more of the keys in oldKeys were not found in the column index. |
Invalid | One or more of the keys in newKeys already exists in the column index and is not replaced. |