semvec/pypi-packages huggingface dataset:
missing-data-as-shadows 1.0.3
Vizualize missing data as shadows
Requires Python: >=3.8

# **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
mkdocs-redoc-tag 0.2.0
A MkDocs plugin supports for add Redoc in page.
Requires Python: >=3.8
Keywords: mkdocs, openapi, plugin, redoc

# MkDocs Redoc Tag 

<a target="_blank" href="https://pypi.org/project/mkdocs-redoc-tag"><img src="https://img.shields.io/pypi/v/mkdocs-redoc-tag.svg" alt="PyPI version"/></a>
<a target="_blank" href="https://pypi.org/project/mkdocs-redoc-tag"><img src="https://img.shields.io/pypi/dm/mkdocs-redoc-tag.svg" alt="PyPI downloads"/></a>
<a target="_blank" href="https://codecov.io/gh/blueswen/mkdocs-redoc-tag"><img src="https://codecov.io/gh/blueswen/mkdocs-redoc-tag/branch/main/graph/badge.svg" alt="Codecov"/></a>

A MkDocs plugin supports adding [Redoc](https://github.com/Redocly/redoc) to the page.

## Features

1. OpenAPI Specification file from online over URL or static file in docs
2. All dependencies are using static files handled by the plugin not from CDN, especially suitable for those documents been deployed in the intranet
3. Synchronized dark mode with [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/)

## Dependency

1. Python Package
    1. beautifulsoup4>=4.11.1
2. Redoc standalone javascript from [official CDN](https://github.com/Redocly/redoc?tab=readme-ov-file#releases)
    1. redoc==2.4.0

## Usage

1. Install the plugin from Pypi

    ```bash
    pip install mkdocs-redoc-tag
    ```

2. Add ```redoc-tag``` plugin into your mkdocs.yml plugins sections:

    ```yaml
    plugins:
       - redoc-tag
    ```
3. Add ```redoc``` tag in markdown to include Redoc:

    ```html
    <redoc src="https://petstore.swagger.io/v2/swagger.json"/>
    ```

    ![Redoc Sample Image](https://blueswen.github.io/mkdocs-redoc-tag/sample.png)

4. You may customize the plugin by passing options in mkdocs.yml:

    ```yaml
    plugins:
       - redoc-tag:
            background: White
    ```

    | Options | Type | Description |
    |---|---|---|
    | background | String | Default: "". Redoc iframe body background attribute value. You can use any css value for background for example "#74b9ff" or "Gainsboro" or "" for nothing. |
    | height | String | Default: "80vh". Height of Redoc iframe. |

## How it works

1. Copy Redoc script file into `site/assets/javascripts/` directory
2. Search all redoc tags, then convert them to an iframe tag and generate the iframe target html with the given OpenAPI Specification src path

## License

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Blueswen/mkdocs-redoc-tag/blob/main/LICENSE) file for details.

## Reference

1. [redark](https://github.com/dilanx/redark): source of dark mode javascript and css