Skip to main content

Automatically Visualize any dataset, any size with a single line of code

Project description

AutoViz

Automatically Visualize any dataset, any size with a single line of code

    ##############################################################################
    #############       This is not an Officially Supported Google Product! ######
    ##############################################################################
    #Copyright 2019 Google LLC                                              ######
    #                                                                       ######
    #Licensed under the Apache License, Version 2.0 (the "License");        ######
    #you may not use this file except in compliance with the License.       ######
    #You may obtain a copy of the License at                                ######
    #                                                                       ######
    #    https://www.apache.org/licenses/LICENSE-2.0                        ######
    #                                                                       ######
    #Unless required by applicable law or agreed to in writing, software    ######
    #distributed under the License is distributed on an "AS IS" BASIS,      ######
    #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.#####
    #See the License for the specific language governing permissions and    ######
    #limitations under the License.                                         ######
    ##############################################################################
    ###########             AutoViz Class                                   ######
    ###########             by Ram Seshadri                                 ######
    ###########      AUTOMATICALLY VISUALIZE ANY DATA SET                   ######
    ###########            Version 0.0.67       date: 12/27/19              ######
    ##############################################################################
    ##### AUTOVIZ PERFORMS AUTOMATIC VISUALIZATION OF ANY DATA SET WITH ONE CLICK.
    #####    Give it any input file (CSV, txt or json) and AV will visualize it.##
    ##### INPUTS:                                                            #####
    #####    A FILE NAME OR A DATA FRAME AS INPUT.                           #####
    ##### AutoViz will visualize any sized file using a statistically valid sample.
    #####  - max_rows_analyzed = 150000 ### this limits the max number of rows ###
    #####           that is used to display charts                             ###
    #####  - max_cols_analyzed = 30  ### This limits the number of continuous  ###
    #####           vars that can be analyzed                                 ####
    #####  - COMMA is assumed as default separator in file. But u can change it.##
    #####  - Assumes first row as header in file but you can change it.      #####
    #####  - First instantiate an AutoViz class to  hold output of charts, plots.#
    #####  - Then call the Autoviz program with inputs as defined below.       ###
    ##############################################################################
    ##### This is the main calling program in AV. It will call all the load, #####
    ####  display and save rograms that are currently outside AV. This program ###
    ####  will draw scatter and other plots for the input data set and then   ####
    ####  call the correct variable name with add_plots function and send in  ####
    ####  the chart created by that plotting program, for example, scatter   #####
    ####  You have to make sure that add_plots function has the exact name of ####
    ####  the variable defined in the Class AV. If not, this will give an error.##
    ####  If verbose=0: it does not print any messages and goes into silent mode##
    ####  This is the default.                                               #####
    ####  If verbose=1, it will print messages on the terminal and also display###
    ####  charts on terminal                                                 #####
    ####  If verbose=2, it will print messages but will not display charts,  #####
    ####  it will simply save them.                                          #####
    ##############################################################################

Installation

Prerequsites:

To clone the AutoViz, it's better to create a new environment, and install the required dependencies:

To install from PyPi:

conda create -n <your_env_name> python=3.7 anaconda
conda activate <your_env_name> # ON WINDOWS: `source activate <your_env_name>` 
pip install autoviz

To install from source:

cd <AutoViz_Destination>
git clone git@github.com:AutoViML/AutoViz.git 
# or download and unzip https://github.com/AutoViML/AutoViz/archive/master.zip
conda create -n <your_env_name> python=3.7 anaconda
conda activate <your_env_name> # ON WINDOWS: `source activate <your_env_name>` 
cd AutoViz
pip install -r requirements.txt

RUN AutoViz

  • In the AutoViz directory, open a Jupyter Notebook and use this line to import the .py file:
from autoviz.AutoViz_Class import AutoViz_Class
AV = AutoViz_Class()
  • Load a data set (any CSV or text file) into a Pandas dataframe or give the name of the path and filename you want to visualize. If you don't have a filename, you can simply assign the filename variable below to '' (empty string):

  • Finally, call AutoViz using the filename (or dataframe) along with the separator (if any in file) and the name of the target variable in file or data frame. That's all. AutoViz will do the rest. You will see charts and plots on your screen.

filename = ''
sep = ','
dft = AV.AutoViz(filename, sep, target, df, header=0, verbose=0, lowess=False, chart_format='svg', max_rows_analyzed=150000, max_cols_analyzed=30)

DISCLAIMER

This is not an official Google product.

LICENSE

Licensed under the Apache License, Version 2.0 (the “License”).

Powered by Gitiles| Privacy

SAMPLE TUTORIALS

Plot your dataset in a single line of code by DataKnight

https://youtu.be/gtzouIxebd8

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoviz-0.0.67.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

autoviz-0.0.67-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file autoviz-0.0.67.tar.gz.

File metadata

  • Download URL: autoviz-0.0.67.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for autoviz-0.0.67.tar.gz
Algorithm Hash digest
SHA256 1ea6aa65cc16d77f311a4c983ec2a1682217807273243c7624f876b97f633efe
MD5 191e97de1f70865dd2c393d830c8919c
BLAKE2b-256 2cf44163a3585e76e9a83ece91ff780c46f2b5ea9c9cc7784691313b438de4ca

See more details on using hashes here.

File details

Details for the file autoviz-0.0.67-py3-none-any.whl.

File metadata

  • Download URL: autoviz-0.0.67-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for autoviz-0.0.67-py3-none-any.whl
Algorithm Hash digest
SHA256 d506375669a43e2e4d8383bb652f125739dbeac4370de0419e098d233061b501
MD5 5a91a0c32d6b50d1bc5a3b276a86f548
BLAKE2b-256 364fb756f0cfda8710d19baa311d367c34de3cd96f4f92efce97b2279658f22e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page