Share via


DataFrame.Drop Method

Definition

Overloads

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.

Drop(String[])

Returns a new DataFrame with columns dropped. This is a no-op if schema doesn't contain column name(s).

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

Applies to