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 物件

適用於