Pandas DataFrame.describe()2024 年 8 月 29 日 | 阅读 2 分钟 describe() 方法用于计算序列或 DataFrame 数值的某些统计数据,如百分位数、均值和 std。 它分析数字和对象序列,以及混合数据类型的 DataFrame 列集。 语法参数
返回值它返回序列和 DataFrame 的统计摘要。 示例 1输出 count 3.0 mean 2.0 std 1.0 min 1.0 25% 1.5 50% 2.0 75% 2.5 max 3.0 dtype: float64 示例 2输出 count 4 unique 3 top q freq 2 dtype: object Example3输出 categorical count 3 unique 3 top u freq 1 Example4输出 categorical numeric count 3 3.0 unique 3 NaN top u NaN freq 1 NaN mean NaN 2.0 std NaN 1.0 min NaN 1.0 25% NaN 1.5 50% NaN 2.0 75% NaN 2.5 max NaN 3.0 |
我们请求您订阅我们的新闻通讯以获取最新更新。