DataFrameNaFunctions.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() |
Returns a new |
Drop(IEnumerable<String>) |
Returns a new |
Drop(Int32) |
Returns a new |
Drop(String) |
Returns a new |
Drop(Int32, IEnumerable<String>) |
Returns a new |
Drop(String, IEnumerable<String>) |
Returns a new |
Drop()
Returns a new DataFrame
that drops rows containing any null or NaN values.
public Microsoft.Spark.Sql.DataFrame Drop ();
member this.Drop : unit -> Microsoft.Spark.Sql.DataFrame
Public Function Drop () As DataFrame
Returns
DataFrame object
Applies to
Drop(IEnumerable<String>)
Returns a new DataFrame
that drops rows containing any null or NaN values
in the specified columns.
public Microsoft.Spark.Sql.DataFrame Drop (System.Collections.Generic.IEnumerable<string> columnNames);
member this.Drop : seq<string> -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (columnNames As IEnumerable(Of String)) As DataFrame
Parameters
- columnNames
- IEnumerable<String>
Column names
Returns
DataFrame object
Applies to
Drop(Int32)
Returns a new DataFrame
that drops rows containing less than minNonNulls
non-null and non-NaN values.
public Microsoft.Spark.Sql.DataFrame Drop (int minNonNulls);
member this.Drop : int -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (minNonNulls As Integer) As DataFrame
Parameters
- minNonNulls
- Int32
Returns
DataFrame object
Applies to
Drop(String)
Returns a new DataFrame
that drops rows containing null or NaN values.
public Microsoft.Spark.Sql.DataFrame Drop (string how);
member this.Drop : string -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (how As String) As DataFrame
Parameters
- how
- String
Determines the behavior of dropping rows
Returns
DataFrame object
Remarks
If `how` is "any", then drop rows containing any null or NaN values. If `how` is "all", then drop rows only if every column is null or NaN for that row.
Applies to
Drop(Int32, IEnumerable<String>)
Returns a new DataFrame
that drops rows containing less than minNonNulls
non-null and non-NaN values in the specified columns.
public Microsoft.Spark.Sql.DataFrame Drop (int minNonNulls, System.Collections.Generic.IEnumerable<string> columnNames);
member this.Drop : int * seq<string> -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (minNonNulls As Integer, columnNames As IEnumerable(Of String)) As DataFrame
Parameters
- minNonNulls
- Int32
- columnNames
- IEnumerable<String>
Column names
Returns
DataFrame object
Applies to
Drop(String, IEnumerable<String>)
Returns a new DataFrame
that drops rows containing any null or NaN values
in the specified columns.
public Microsoft.Spark.Sql.DataFrame Drop (string how, System.Collections.Generic.IEnumerable<string> columnNames);
member this.Drop : string * seq<string> -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (how As String, columnNames As IEnumerable(Of String)) As DataFrame
Parameters
- how
- String
Determines the behavior of dropping rows
- columnNames
- IEnumerable<String>
Column names
Returns
DataFrame object
Remarks
If `how` is "any", then drop rows containing any null or NaN values. If `how` is "all", then drop rows only if every column is null or NaN for that row.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for