python中快速数据探索库
2019-08-21 本文已影响0人
ghostdogss
import pandas as pd
import pandas_profiling
# 加载泰坦尼克号数据
data = pd.read_csv('https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv')
# 快速数据探索
profile = data.profile_report(title='Titanic Dataset')
profile
# 注意只能导出html格式
profile.to_file(output_file="output.html")
结果截图:
