Status
Release
Code
Generates an interactive visual analysis widget to analyze a pandas DataFrame in Jupyter notebooks. It can display various different types of graphs with support for linked-brushing in interactive widgets. This allows data exploration and cognition to be simple, even with complex multivariate datasets.
There is no need to create and style plots or interactivity - its all ready without any configuration.
Installation
Using pip
To install this package with pip run:
pip install pandas-visual-analysis
Using conda
To install this package with conda run:
conda install -c meffmadd pandas-visual-analysis
From Source
To install this package from source, clone into the repository or download the zip file and run:
python setup.py install
Usage
Basic Usage
Having a DataFrame, for example:
import pandas as pd
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
url = "https://raw.githubusercontent.com/mwaskom/seaborn-data/master/mpg.csv"
df = pd.read_csv(url)
you can just pass it to VisualAnalysis to display the default layout:
from pandas_visual_analysis import VisualAnalysis
VisualAnalysis(df)
If you want to specify which columns of the DataFrame are categorical, just pass the categorical_columns option:
from pandas_visual_analysis import VisualAnalysis
categorical = ["name", "origin", "model_year", "cylinders"]
VisualAnalysis(df, categorical_columns=categorical)
Selection Types
By default a new selection replaces the old selection, however, it is also possible to add data points to the existing selection by selecting the Additive selection type. By choosing the Subtractive selection newly selected data points are removed from the selection.
Using DataSource
Instead of passing the DataFrame object directly to VisualAnalysis it is possible to use a DataSource object. This enables linked-brushing across multiple notebook cells if the object is used across cells.
from pandas_visual_analysis import VisualAnalysis, DataSource
data = DataSource(df)
VisualAnalysis(data)
Later you can create a new analysis with the brushing still preserved simply by using the same data object created earlier.
VisualAnalysis(data)
Using Layouts
If you want to specify your own layout, you can do that by passing the layout parameter. The parameter is a list of rows, where each row is in turn a list specifying the Widgets in that row.
from pandas_visual_analysis import VisualAnalysis
VisualAnalysis(df,
layout=[["Scatter", "Scatter"],
["ParallelCoordinates"]]
)
Here, two scatter plots will share the first row while the second row only contains a parallel coordinates plot. In order to see all the possible options you can call the widgets class-method of VisualAnalysis.
VisualAnalysis.widgets()
This outputs the following list of possible plots:
['Scatter',
'ParallelCoordinates',
'BrushSummary',
'Histogram',
'ParallelCategories',
'BoxPlot']
Any of those can be part of the layout specification. See also: widgets Documentation.
For more advanced features of the VisualAnalysis class see: VisualAnalysis Documentation
Documentation
For more details see the Official Documentation.
Metadata
Release files for pandas-visual-analysis 0.0.4
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 |
|---|---|---|---|---|
| pandas-visual-analysis-0.0.4.tar.gz | 24.3 kB | Without provenance | Details for pandas-visual-analysis-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_visual_analysis-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for pandas_visual_analysis-0.0.4-py3-none-any.whl |
Total release size: 58.6 kB
Release files / pandas-visual-analysis-0.0.4.tar.gz
| Download URL | pandas-visual-analysis-0.0.4.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a42cae09c755fa1da55716f5e405d9344fb6ada5bcdd911067260ef54343681c
|
|
BLAKE2b-256 checksum How to use checksums |
523353d5cb5e384b39890ea61ac050b1b567d0c90153f2f439846e29d8657d46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.12
|
Release files / pandas_visual_analysis-0.0.4-py3-none-any.whl
| Download URL | pandas_visual_analysis-0.0.4-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5004cce06062ad29d25b2bbb3376f16d6c8d5b8a505c519cab9928e34ab41da5
|
|
BLAKE2b-256 checksum How to use checksums |
d53ae91c3df844cabb7807598ee6499447d3d6a440adf48caed5042a6b3f4a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.12
|
Security for pandas-visual-analysis 0.0.4
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.