Description
Requirements
- python >= 3.6
- numpy >= 1.16
- pandas >= 0.23
- matplotlib >= 3.02
- IPython >= 7.2.0
Module, provides the function view, which displays general information on the data:
- Result of method info()
- Result of method describe()
- for numeric / categorical variables - The number of nulls in the data (amount and percentage for each column)
- grid of histograms for numeric variables
- Top-5 of the most frequent categorical variables (for each)
- Split count statistic by category with less 5 unique values
- matrix correlation
- dataframe of higher correlation pair (over 0.7)
Parameters (function view):
- d - table with data
- only_numeric - True / False, default: True. True - information output only by numerical variables, False - information output by numerical and categorical variables.
- full_stats - True / False, default: False. False - output information on numerical variables without interquartile range, data boundaries without outliers, True - complete output with IQR, min and max by IQR and amount of outliers.
- histograms - True / False, default: True. True - output with building histograms for numerical variables, False - without building histograms
Top-5 elements of categorical variables
The postfix (_name / _count) is assigned to the name of the data column to create top-5 elements table:
- _name - category name
- _count - number of unique elements in this category. If there are less than 5 unique elements, then the values in the _count field are filled -1
Count statistic of numbers variables split by some categorical variables
- if number of unique elements in category variable less 5, then show count statistic
Correlation matrix
- Correlation matrix with heatmap (pearson corr index)
Install
$ pip install data_view
Usage
$ python3
from data_view import *
d = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]), columns=['a', 'b', 'c'])
view(d, only_numeric=True, histograms=False)
Metadata
Release files for data-view 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| data-view-0.2.0.tar.gz | 5.4 kB | Without provenance | Details for data-view-0.2.0.tar.gz |
Release files / data-view-0.2.0.tar.gz
| Download URL | data-view-0.2.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8871e19f0db0d37ece18933c5d40476f53c863b8762c251c10f69cdfa86ad6ed
|
|
BLAKE2b-256 checksum How to use checksums |
583f61747f454b47b8e87c22da42dc1793bec3c38e438ad9bc508e120a16a326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
|
Security for data-view 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.