Skip to main content

Vizualize missing data as shadows

Project description

Visualization of Incomplete Datasets

This project focuses on visualizing incomplete datasets, where missing data is represented using shadows or other graphical elements. The goal is to facilitate the interpretation of missing values and help analysts gain a deeper understanding of the data.

Usage

import pandas as pd

from missing_data_as_shadows import make_full_analysis, scatter_with_shadows_rect_binned

Load data with missing values

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

Generate full visualization

make_full_analysis(df, output_name="output_name", method="spearman")

Method parameter is correlation method

If you don't provide method parameter default is pearson.

The method parameter allows you to select any correlation method supported by pandas, such as:

  • pearson

  • kendall

  • spearman

Generate Subplots with Shadows for Two Attributes

create_subplot_with_shadows(data, atr1, atr2, name="test", save=True)

Parameters

data (DataFrame) – The dataset containing the attributes to visualize.

atr1 (str) – The first attribute (column name) for visualization.

atr2 (str) – The second attribute (column name) for visualization.

name (str, optional, default=None) – The filename to save the plot. If None, the plot will not be saved.

Generate visualization for two chosen attributes

Usage

scatter_with_shadows_rect_binned(

diabetesData,
diabetes_data_attribute_one, 
diabetes_data_attribute_two,
bins_count=10,
marker_size_scatter=3,
marker_size_rect=0.001
name="Name"

)

Parameters

df (DataFrame) – The dataset containing the attributes to visualize.

col_a (str) – The first attribute (column name) to be plotted on the x-axis.

col_b (str) – The second attribute (column name) to be plotted on the y-axis.

marker_size_scatter (float, default=3) – The size of scatter plot markers.

marker_size_rect (float, default=0.5) – The size of markers for binned data representation.

bins_count (int, default=10) – The number of bins used for shadow visualization.

fraction_of_range (float, default=0.5) – Determines the proportion of the attribute range considered for binning.

color_missing_a (str, default='grey') – Color used to highlight missing values in col_a.

color_missing_b (str, default='grey') – Color used to highlight missing values in col_b.

alpha_main (float, default=0.3) – Transparency level of the scatter points.

outline_color (str, default='black') – Color of the outline around data points.

outline_width (float, default=0.5) – Thickness of the outline around data points.

name - (str) - save with specified name

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

missing_data_as_shadows-1.0.3.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

missing_data_as_shadows-1.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file missing_data_as_shadows-1.0.3.tar.gz.

File metadata

  • Download URL: missing_data_as_shadows-1.0.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for missing_data_as_shadows-1.0.3.tar.gz
Algorithm Hash digest
SHA256 567c4464b02122f0c04f530668e99ffa8788865127c63ffe6901eaf574c77f42
MD5 9c6969dd1de9909b6d2e6f084044c8ab
BLAKE2b-256 184bf03060113f399aa64f4c27982ac6f9a4f8f040ed1b0049f4d92ae8d67580

See more details on using hashes here.

File details

Details for the file missing_data_as_shadows-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for missing_data_as_shadows-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 424f7383f6208a9b0bc4b70d08c9305b1a0d0e7365bd0230809c1f0f19b0563d
MD5 878f2dc0c66e69eac9cf074581e47b7b
BLAKE2b-256 8d67dd129fabbe237df4ae38fa81806b14475611305323a40edd7f82a7f90583

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