Visualize missing data
Project description
visualimiss
"visualize missing data". A simple missingno clone. Some features were removed from the original and some were added.
Features
Some features differ from the original one:
- Have
matrix(),bar()modified function from the original one - Simpler and faster
- Maybe more readable?
Installation
pip install visualimiss
This also install all dependencies: Numpy, Pandas, Matplotlib
Quickstart
This quickstart uses datasets of the NYPD Motor Vehicle Collisions Dataset.
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/ResidentMario/missingno-data/master/nyc_collision_factors.csv")
matrix
visualimiss.matrix(df)
bar
visualimiss.bar(df)
info
visualimiss.info(df)
- DataFrame has 7303 rows, 26 columns
- Memory usage: 1.519152 MB
Null count Dtype
DATE 0 object
TIME 0 object
BOROUGH 383 object
ZIP CODE 384 float64
LATITUDE 0 float64
LONGITUDE 0 float64
LOCATION 0 object
ON STREET NAME 1065 object
CROSS STREET NAME 1137 object
OFF STREET NAME 6542 object
NUMBER OF PERSONS INJURED 0 int64
NUMBER OF PERSONS KILLED 0 int64
NUMBER OF PEDESTRIANS INJURED 0 int64
NUMBER OF PEDESTRIANS KILLED 0 int64
NUMBER OF CYCLISTS INJURED 7303 float64
NUMBER OF CYCLISTS KILLED 7303 float64
CONTRIBUTING FACTOR VEHICLE 1 0 object
CONTRIBUTING FACTOR VEHICLE 2 1085 object
CONTRIBUTING FACTOR VEHICLE 3 7000 object
CONTRIBUTING FACTOR VEHICLE 4 7244 object
CONTRIBUTING FACTOR VEHICLE 5 7289 object
VEHICLE TYPE CODE 1 58 object
VEHICLE TYPE CODE 2 1520 object
VEHICLE TYPE CODE 3 7019 object
VEHICLE TYPE CODE 4 7249 object
VEHICLE TYPE CODE 5 7291 object
Configuration
Sorting
visualimiss.matrix(df, sort='asc')
Rotate, hide label
# visualimiss.matrix(df, label_rotation=90)
visualimiss.matrix(df, show_label=False)
Change color, font size
visualimiss.matrix(df, color=(43, 102, 189), fontsize=16)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file visualimiss-0.0.7.tar.gz.
File metadata
- Download URL: visualimiss-0.0.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9d72677e196ff74bc05aedc474e68daf6128e5f46d7cfc09f16af2a64c9efc7
|
|
| MD5 |
529549856d2e5400ef7126dedee51b30
|
|
| BLAKE2b-256 |
52945f2c0c539890ac7a09c58c678b146a866ebb454e26e16e0bf3b4633311c7
|
File details
Details for the file visualimiss-0.0.7-py3-none-any.whl.
File metadata
- Download URL: visualimiss-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
174004c2cd1c795f4cfe36b293562c184fc2a4327139e8a69d4893f01b7d909b
|
|
| MD5 |
3ca73cb32d761d96960b9e94c819f704
|
|
| BLAKE2b-256 |
b389fe5ed9ced2f1b24cbf866d83db00a1dab6313b6e715fd418f8ed0559e188
|