使用 AutoViz 进行绘图(自动完成数据可视化)

准备工作

安装第三方库:
pip install autoviz xlrd wordcloud
我安装的
autoviz 是 0.0.84
xlrd 是 1.2.0
wordcloud 是 1.8.1

如果你有数据集,如 csv 文件,可以用你自己的。
我这里使用的是 seaborn-data 数据集

Github :https://github.com/mwaskom/seaborn-data


我的在导入运行时,出现了 get_ipython().magic('matplotlib inline') 问题
将 if verbose <= 1: 和 get_ipython().magic('matplotlib inline') 的注释去掉
(我的是修改了两处 225行和 811行,我的 autoviz 是 0.0.84 版本) if verbose <= 1: # ipython inline magic shouldn't be needed because all plots are # being displayed with plt.show() calls get_ipython().magic('matplotlib inline')

from autoviz.AutoViz_Class import AutoViz_Class

AV = AutoViz_Class()


path = 'seaborn-data/'
df = AV.AutoViz(path + 'iris.csv')

Shape of your Data Set loaded: (150, 5)
############## C L A S S I F Y I N G  V A R I A B L E S  ####################
Classifying variables in data set...
    Number of Numeric Columns =  4
    Number of Integer-Categorical Columns =  0
    Number of String-Categorical Columns =  1
    Number of Factor-Categorical Columns =  0
    Number of String-Boolean Columns =  0
    Number of Numeric-Boolean Columns =  0
    Number of Discrete String Columns =  0
    Number of NLP String Columns =  0
    Number of Date Time Columns =  0
    Number of ID Columns =  0
    Number of Columns to Delete =  0
    5 Predictors classified...
        This does not include the Target column(s)
        No variables removed since no ID or low-information variables found in data set
Number of All Scatter Plots = 10
 
 
 
 
 
 
 
Time to run AutoViz (in seconds) = 6.461

 ###################### VISUALIZATION Completed ########################


posted @ 2021-09-20 13:49  CodeYaSuo  阅读(711)  评论(0编辑  收藏  举报