Autoviz in python – Data Visualization Made Simple

Filed Under: Python Modules
Autoviz In Python

As I always say, EDA is the heart of any analysis. EDA is more or like a general approach to explore and understand the data before modeling. Your end goal can be predicting or modeling, before that, you should explore the data to get some insights and to know what the data is telling you. And as you know, Visualization being the key component of EDA, you have to plot different charts based on the data. Well, in python, you may use mat plot lib or seaborn for the data visualization. Both are amazing libraries that offer various features and great plots. But, today let’s talk about Autoviz in python, an automated visualization library. 

What is Autoviz in python?

Autoviz in python is an open-source library maintained by AutoviML. Autoviz takes data as input and finds the basic structure and identifies impactful features to plot beautiful visualizations in a single line of code. 

When you work with mat plot lib and seaborn, you have to define the plot type and various parameters.

But, in Autoviz, a single line of code can identify features and create meaningful plots for you.

Key features

  • Autoviz in Python creates automated visualizations by identifying key features.
  • It works well with data of any size.
  • This library is very fast and approximately takes 3-4 seconds to create many visualizations.
  • All the magic happens in just a single line of code.

Installing Autoviz in Python

First things first, let’s install the Autoviz library in python.

#Install Autoviz library 

pip install autoviz

You can run the above command to install the Autoviz in python. Let’s roll!!!

Import the Autoviz Class and Instantiate

The Autoviz library is implemented in 3 steps.

  1. Define the Autoviz class
  2. Instantiate the class
  3. Create the Visualization.

So, let’s import the Autoviz class first and then we try to instantiate it.

#Here, we are importing the Autoviz class

from autoviz.AutoViz_Class import AutoViz_Class

#Here, we instantiate the Autoviz class

AV = AutoViz_Class()

Well, we have imported and instantiated the Autoviz class in python. So, finally, we are all set for plotting amazing visualizations in no time.

Autoviz – Create Automated Visualizations

We have our Autoviz setup ready. Now, the magic is here. Get your data ready for exploring and visualizing.

Autoviz library offers multiple arguments to pass and we will discuss each of them.

#Creates automated visualizations 

df = AV.AutoViz('autos.csv')

I have used the autos dataset for this purpose. As soon as you execute this single line of code, Autoviz will first describe the basic structure of data as shown below.

Basic Data Description
Basic Data Description by Autoviz

All the plots by Autoviz are given below for your reference.

Autoviz Scatter Plots
Scatter Plots

Data Distribution
Data Distribution

Displot Boxplot And Probablity Plot
Distplot Boxplot And Probability Plot

Correlation Plot
Correlation Plot

Autoviz Violin Plots
Violin Plots

The best part of Autoviz in python is, you can create all these plots in a single line of code. Isn’t that cool!!!

Various Important Arguments in Autoviz in python

As I already said, Autoviz offers multiple arguments for elegant plots. Let’s see them all.

  • filename – You can use this argument to define the data file.
  • depVar – You can use this to specify the dependent variable in the plots.
  • verbose – Personally, I loved this argument most. There will be three options in this, a. 0 – If mention 0, plots will be created with minimum information. b. 1 – If mentioned as 1, plots will be created with full information. c. 2 – If mentioned 2, no plots will be shown, but it will create a folder in your directory named “Autoviz_plots” and all the plots will be saved here.
  • chart_format – I told you that you can save the charts by setting verbose as 2. So, you can specify the chart format as PNG, JPG or more.

Save the Created Plots

Having an option to save the created plots is a big plus in Autoviz. As I already told you, you have to pass the ‘verbose = 2’ argument to save the plots into your working directory.

The Autoviz will create a folder named ‘Autoviz plots’ and save all the created charts in specified format there. You can use these charts whenever needed.

Autoviz Saved Plots
Autoviz Saved Plots

This is how it looks like. I hope you love this as much as I do.


Autoviz is a python automated visualization library. It is fast and very easy to work with. As I have shown here, in a single line of code, you can create many plots.

Autoviz can save more time for you in visualizing the data. You can make use of multiple useful arguments to make better and meaningful plots.

That’s all for now. Happy python!!!

More read: Python Autoviz documentation

Leave a Reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content