DataFrameNaFunctions.Drop 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| Drop() |
傳回新的 |
| Drop(IEnumerable<String>) |
傳回新的 |
| Drop(Int32) |
傳回新的 |
| Drop(String) |
傳回新的 |
| Drop(Int32, IEnumerable<String>) |
傳回新的 |
| Drop(String, IEnumerable<String>) |
傳回新的 |
Drop()
傳回新的 DataFrame ,卸載包含任何 Null 或 NaN 值的資料列。
public Microsoft.Spark.Sql.DataFrame Drop ();
member this.Drop : unit -> Microsoft.Spark.Sql.DataFrame
Public Function Drop () As DataFrame
傳回
DataFrame 物件
適用於
Drop(IEnumerable<String>)
傳回新的 DataFrame ,卸載包含指定資料行中任何 Null 或 NaN 值的資料列。
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
參數
- columnNames
- IEnumerable<String>
資料行名稱
傳回
DataFrame 物件
適用於
Drop(String)
傳回新的 DataFrame ,卸載包含 Null 或 NaN 值的資料列。
public Microsoft.Spark.Sql.DataFrame Drop (string how);
member this.Drop : string -> Microsoft.Spark.Sql.DataFrame
Public Function Drop (how As String) As DataFrame
參數
- how
- String
決定卸載資料列的行為
傳回
DataFrame 物件
備註
如果 'how' 為 「any」,則卸載包含任何 Null 或 NaN 值的資料列。 如果 'how' 是 「all」,則只有在該資料列的每個資料行都是 Null 或 NaN 時,才會卸載資料列。
適用於
Drop(Int32, IEnumerable<String>)
傳回新的 DataFrame ,其會卸載包含小於 minNonNulls 指定資料行中非 Null 和非 NaN 值的資料列。
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
參數
- minNonNulls
- Int32
- columnNames
- IEnumerable<String>
資料行名稱
傳回
DataFrame 物件
適用於
Drop(String, IEnumerable<String>)
傳回新的 DataFrame ,卸載包含指定資料行中任何 Null 或 NaN 值的資料列。
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
參數
- how
- String
決定卸載資料列的行為
- columnNames
- IEnumerable<String>
資料行名稱
傳回
DataFrame 物件
備註
如果 'how' 為 「any」,則卸載包含任何 Null 或 NaN 值的資料列。 如果 'how' 是 「all」,則只有在該資料列的每個資料行都是 Null 或 NaN 時,才會卸載資料列。