다음을 통해 공유


DataFrame.WithColumn(String, Column) 메서드

정의

열을 추가하거나 이름이 같은 기존 열을 바꿔 새 DataFrame 를 반환합니다.

public Microsoft.Spark.Sql.DataFrame WithColumn (string colName, Microsoft.Spark.Sql.Column col);
member this.WithColumn : string * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.DataFrame
Public Function WithColumn (colName As String, col As Column) As DataFrame

매개 변수

colName
String

새 열의 이름

col
Column

새 열에 대한 열 식

반환

DataFrame 개체

적용 대상