DataFrame.Drop 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.
Overloads
| Drop(Column) |
Returns a new |
| Drop(String[]) |
Returns a new |
Drop(Column)
Returns a new DataFrame with a column dropped.
This is a no-op if the DataFrame doesn't have a column with an equivalent expression.
public Microsoft.Spark.Sql.DataFrame Drop(Microsoft.Spark.Sql.Column col);
member this.Drop : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (col As Column) As DataFrame
Parameters
- col
- Column
Column expression
Returns
DataFrame object
Applies to
Drop(String[])
Returns a new DataFrame with columns dropped.
This is a no-op if schema doesn't contain column name(s).
public Microsoft.Spark.Sql.DataFrame Drop(params string[] colNames);
member this.Drop : string[] -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (ParamArray colNames As String()) As DataFrame
Parameters
- colNames
- String[]
Name of columns to drop
Returns
DataFrame object