美文网首页
Pandas-Profilling:一行代码做探索性数据分析

Pandas-Profilling:一行代码做探索性数据分析

作者: adi0229 | 来源:发表于2019-08-14 23:09 被阅读0次

在MixLab 看到了推荐的Python数据分析模块 pandas-profiling

传送门: pandas-profiling

示例代码

pip install pandas-profiling

import numpy as np
import pandas as pd
import pandas_profiling

df = pd.DataFrame(
    np.random.rand(100, 5),
    columns=['a', 'b', 'c', 'd', 'e']
)
df.profile_report(style={'full_width':True})

笔者在流行音乐情绪数据集 PMEmo 上体验了一把。

一行代码,就自动对 Dataframe 对象进行了各项基础的统计归纳。

预览

变量

相关性

缺失值

样本

changelog

08.14 init

相关文章

网友评论

      本文标题:Pandas-Profilling:一行代码做探索性数据分析

      本文链接:https://www.haomeiwen.com/subject/kfyojctx.html