DataFrame.WithColumnRenamed(String, String) 方法

定义

返回重命名了列的新数据集。 如果架构不包含 existingName,则为无操作。

public Microsoft.Spark.Sql.DataFrame WithColumnRenamed (string existingName, string newName);
member this.WithColumnRenamed : string * string -> Microsoft.Spark.Sql.DataFrame
Public Function WithColumnRenamed (existingName As String, newName As String) As DataFrame

参数

existingName
String

现有列名

newName
String

要替换为 的新列名

返回

DataFrame 对象

适用于