Active Hackathon

Hands-On Guide To Pandas Visual Analysis – Way To Speed-Up Data Visualization

Pandas Visual Analysis is an open-source python library which is used to visually analyze the data and that too in just a single line of code. It creates a user interface that can be used to create different plots and graphs taking different attributes.
Pandas Visual Analysis

Exploratory Data Analysis is the process of inspecting the data in order to understand what the data is all about. It is generally a visual method where we create different plots and graphs to understand what patterns, anomalies and outliers do data have. It is an important step because it helps us analyze the relationship between different attributes within themselves, also it is helpful in analyzing the properties of different attributes of the dataset.

Being an important step in analyzing what data is all about Exploratory Data Analysis generally takes a lot of time because we need to write code for analyzing and visualizing data. What if we can automate this process of visualizing and analyzing data? 


Sign up for your weekly dose of what's up in emerging technology.

Pandas Visual Analysis is an open-source python library which is used to visually analyze the data and that too in just a single line of code. It creates a user interface that can be used to create different plots and graphs taking different attributes. It supports a large variety of graphs and plots, also all the graphs are created using Plotly so that they are highly interactive, visually appealing, and easily downloadable.

In this article, we will see how easily and effortlessly we can automate the process of visual analysis using Pandas Visual Analysis.


We will start by installing pandas visual analysis using pip install pandas-visual-analysis.

  1. Importing Required Libraries

For data analysis, we will be importing pandas visual analysis and we will import pandas for loading the dataset we will use. Other than this we will import seaborn to load a dataset defined in seaborn named tips.

import pandas as pd

from pandas_visual_analysis import VisualAnalysis

import seaborn as sns

  1. Loading the dataset

We will explore pandas visual analysis using two different datasets. One dataset we will load from seaborn named tips is a dataset of a restaurant data which contains attributes like ‘total bill’, ‘tip’, etc. and the second dataset is a sales data of an MNC which contains attributes like ‘Sales’, ‘TV’, etc.

df1= sns.load_dataset(‘tips’)



df2= pd.read_csv(‘Advertising.csv’)


Second Dataset
  1. Visual Analysis

This is the final step that will load our data in the form of a Graphical User Interface where we have a variety of graphs and plots defined and we can select different attributes to visualize.


Graphical User Interface

Here you can see that we have created an interface with different sections to analyze and visualize the dataset we are working on. It is a multivariate dataset still pandas visual analysis created it so easily and effortlessly. Let us see what are the different sections.

  1. Statistical Analysis

The first section helps us analyze the statistical properties, we can analyze different metrics like mean, quartiles, median, etc. for all the numerical attributes.

Statistical analysis
  1. Distribution using Scatter Plot

Using this,  we can analyze the distribution and relationship between two attributes using a scatter plot.

Scatter Plot
  1. Distribution Using Histogram

In this way, we will analyze the distribution of an attribute using the histogram.

Distribution Plot

These are the different approaches that we can use to analyze a dataset using pandas visual analysis.

Similarly, we can create this interface and analyze different sections of the second dataset using the same VisualAnalysis command.


Interface for second dataset


In this article, we saw how we can analyze and visualize different properties of data using pandas visual analysis. We saw how easily we can create an interface that can be used to create plots and graphs between different attributes of the dataset and we also analyzed the statistical properties of the different numerical attributes of the dataset. Pandas Visual Analysis can be used to reduce time and effort in performing exploratory Data Analysis.

More Great AIM Stories

Himanshu Sharma
An aspiring Data Scientist currently Pursuing MBA in Applied Data Science, with an Interest in the financial markets. I have experience in Data Analytics, Data Visualization, Machine Learning, Creating Dashboards and Writing articles related to Data Science.

Our Upcoming Events

Conference, in-person (Bangalore)
Machine Learning Developers Summit (MLDS) 2023
19-20th Jan, 2023

Conference, in-person (Bangalore)
Rising 2023 | Women in Tech Conference
16-17th Mar, 2023

Conference, in-person (Bangalore)
Data Engineering Summit (DES) 2023
27-28th Apr, 2023

Conference, in-person (Bangalore)
MachineCon 2023
23rd Jun, 2023

3 Ways to Join our Community

Discord Server

Stay Connected with a larger ecosystem of data science and ML Professionals

Telegram Channel

Discover special offers, top stories, upcoming events, and more.

Subscribe to our newsletter

Get the latest updates from AIM