用Pandas Profiling一键生成数据EDA

安装

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']
)

产生报告,输出HTML文件

profile = df.profile_report(title='Pandas Profiling Report')
profile.to_file(output_file="output.html")

输出效果

你可能感兴趣的:(用Pandas Profiling一键生成数据EDA)