DataFrame.WithColumn(String, Column) Method
In this article
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.DataFrame
Public Function WithColumn (colName As String, col As Column) As DataFrame
- colName
- String
Name of the new column
- col
- Column
Column expression for the new column
DataFrame object
Applies to
Product | Versions |
---|---|
Microsoft.Spark | latest |