Home Tools Data Visualization Plotting Dataset in One Line of Code using AutoViz

Plotting Dataset in One Line of Code using AutoViz

In this short article, we will discuss on plotting dataset in one line of code using AutoViz tool. It is a new tool for automated data visualization in Data science.

AutoViz is a simple and easy to use library for plotting any sized dataset in Python. You can visualize your dataset  using a single line of code. Exploratory Data Analysis (EDA) can be explored with this tool.

This library lets you create automatic visualization of any sized CSV data. In addition, you can also use real world datasets for visualization purposes. The package plays a pivotal role to get the valuable insights from datasets.

All you need to do is write a single line of source code in the Pandas data frame to perform the visualization task automatically.

Besides, you can import the structured  CSV, JSON, TXT dataset to visualize it smoothly and quickly. This tool can handle large dataset and provide output quickly.

Plot Dataset Using AutoViz Tool

Follow the steps to install and plot the dataset using AutoViz.

Step #1: Install Autoviz Package

First, you need to install the package on your system using the following command.

pip install AutoViz /* Using command prompt

Step #2 : Import

import pandas as pd /* Import pandas

from autoviz.AutoViz_Class import AutoViz_Class

Step #3: Instantiate the Class

Av=AutoViz_Class( ) /*Set autoviz variable

df=pd.read_csv(‘filename.csv’)     /* Read Dataset with Pandas   

 Type df to see the rows and columns of your dataset

sep=’ ‘ /* Separators are used in dataset

target=’ ‘ /* pickup any column for testing only

dfv= Av.AutoViz(‘ ‘, sep, target, df)

Step #4 : Run the Code

Once you run the above codes, the following will appear

1. the shape of your dataset: (rows, column)

2. classification in the dataset

 3. time to run AutoViz in seconds

Data Sources for Plotting Dataset in AutoViz

You can access free publicly available datasets through the Google Dataset search engine and Kaggle. If you want to know more about google dataset search engine then see our previous article.

In case if you wish to add any information, feel free to let me know in the comment section.

Resources for Plotting Dataset Using One Line of Code

For Github Page – Click Here

Visit Notebook- Click Here

Visit pypi page- Click Here

What other tools have you used for data visualization ? We would love to hear and learn from you.

Please feel free to comment below.

Dr. Ujjal Marjit, PhDhttps://researcherssite.com
Dr. Ujjal Marjit leads the Centre for Information Resource Management of the University of Kalyani, India. He received his bachelor honours degree from Visva Bharati, Central University and Master in Computer Application from Jadavpur University, India.He did his BLISc and MLISc from Madurai Kamraj University, India. He obtained his PhD in Computer Science and Engineering from University of Kalyani. He was also a visiting researcher at Norwegian University of Science and Technology (NTNU), Norway. Dr. Marjit was a member of the Association for Computing Machinery (ACM), USA. He has coauthored several book chapters and over 70 research publications in various International Journals and Conferences. Dr. Marjit attended many national and international conferences in India and abroad ( Germany, London, Finland, Norway, Netherlands). He has been working in University since 2001.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Useful Tool for Identifying Predatory Journals

In this post, I show you how to identify predatory journals using the "Compass to Publish", a useful tool.

Must-Have Browser Extensions for Academic Research

In this article, I share some must have browser extensions for academic research in any domain.

How to Make Your Academic Research Paper Open Access, for Free

This article describes how to make your academic research paper open access, for free using shareyourpaper.org tool

How to Find Relevant Research Papers to Speed Up Your Literature Review

How to Find the Relevant Academic Literature to Speed Up Literature Review Using the Inciteful Tool