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”函数。