DataFrame.Describe(String[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算數值和字串資料行的基本統計資料,包括 count、mean、stddev、min 和 max。如果未指定任何資料行,此函式會計算所有數值或字串資料行的統計資料。
public Microsoft.Spark.Sql.DataFrame Describe(params string[] cols);
member this.Describe : string[] -> Microsoft.Spark.Sql.DataFrame
Public Function Describe (ParamArray cols As String()) As DataFrame
參數
- cols
- String[]
資料行名稱
傳回
DataFrame 物件
備註
此函式適用于探勘資料分析,因為我們不保證結果 DataFrame 架構的回溯相容性。 如果您想要以程式設計方式計算摘要統計資料,請改用 'agg' 函式。