DataFrame.WithColumn(String, Column) Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new DataFrame by adding a column or replacing the existing column that
has the same name.
public Microsoft.Spark.Sql.DataFrame WithColumn(string colName, Microsoft.Spark.Sql.Column col);member this.WithColumn : string * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.DataFramePublic Function WithColumn (colName As String, col As Column) As DataFrameParameters
- colName
- String
Name of the new column
- col
- Column
Column expression for the new column
Returns
DataFrame object