美文网首页
python中快速数据探索库

python中快速数据探索库

作者: ghostdogss | 来源:发表于2019-08-21 10:30 被阅读0次
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")

结果截图:

image.png

相关文章

网友评论

      本文标题:python中快速数据探索库

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