Skip to main content

A library for creating visualizations for data analysis.

Project description

VizUtils

VizUtils is a Python library that simplifies the creation of various types of visualizations, ranging from basic plots to advanced and interactive visualizations. Whether you're performing exploratory data analysis or presenting insights, VizUtils provides an easy-to-use interface for generating insightful plots.

Features

  • Basic Plots: Create common visualizations like bar plots, histograms, line plots, and scatter plots with minimal code.

Below are examples of how to use different features of VizUtils.

from vizutils.basic_plots import bar_plot, histogram, line_plot, scatter_plot import pandas as pd

Load your dataset

df = pd.read_csv("data.csv")

Bar Plot

bar_plot(df, x='category', y='values', title='Category vs Values')

Histogram

histogram(df['values'], bins=15, title='Value Distribution')

Line Plot

line_plot(df, x='date', y='values', title='Values Over Time')

Scatter Plot

scatter_plot(df, x='feature1', y='feature2', title='Feature1 vs Feature2', hue='category')

  • Advanced Plots: Generate more complex visualizations such as correlation heatmaps, pair plots, and box plots.

Below is the code example

from vizutils.advanced_plots import correlation_heatmap, pair_plot, box_plot

Correlation Heatmap

correlation_heatmap(df, title='Correlation Matrix')

Pair Plot

pair_plot(df, hue='category', title='Pair Plot of Features')

Box Plot

box_plot(df, x='category', y='values', title='Box Plot of Values by Category')

  • Interactive Plots: Use Plotly to create interactive plots that can be embedded in notebooks and web pages.

Below is the code example:

from vizutils.interactive_plots import interactive_scatter, interactive_line, interactive_histogram

Interactive Scatter Plot

interactive_scatter(df, x='feature1', y='feature2', color='category', title='Interactive Scatter Plot')

Interactive Line Plot

interactive_line(df, x='date', y='values', color='category', title='Interactive Line Plot')

Interactive Histogram

interactive_histogram(df['values'], nbins=20, title='Interactive Histogram')

Requirements

Python 3.6+ pandas matplotlib seaborn plotly

Installation

You can install VizUtils using pip:

pip install vizutils

Project details


Download files

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

Source Distribution

vizutils-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vizutils-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file vizutils-0.1.1.tar.gz.

File metadata

  • Download URL: vizutils-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for vizutils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5ab8e59d0309c3f2f45cbf556251f9a1797dfb146334c8539f2ffbed1003ac63
MD5 9a89b4f8f0f2de61ad86716d90ee2bff
BLAKE2b-256 51683dfe78dfffac36378e2b0c1a4ad2efd478ce0c1cc9f14eb692a42e21f349

See more details on using hashes here.

File details

Details for the file vizutils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vizutils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for vizutils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b16b8204c705b7a3b064422d2d0107869c0572a4e1f3ca95bb26856bc4fefcdb
MD5 d8f4160704e31f702898c833e266de09
BLAKE2b-256 2a0973428b0a740dbfa1f5901c6c8e3564e59f87192050f25bdf4985a12a8571

See more details on using hashes here.

Supported by

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