xplr
Overview
The xplr package is aimed at quick visualization of Python objects in exploratory data analysis. It has two functions:
plot---Create basic sensible plot of objectview---Export object to temporary file and open in default external program
The plot function has the following modes:
| Group | Object | Plot type |
|---|---|---|
| Vector | ndarray (1-dimensional) |
Line plot |
| Vector | Series |
Line plot |
| Table | DataFrame |
Line plot |
| Matrix | ndarray (2-dimensional) |
Image |
| Geometry column | GeoSeries |
Map |
| Vector layer | GeoDataFrame |
Map |
The view function has the following modes:
| Group | Object | Plot type |
|---|---|---|
| Vector | Series |
'.xlsx' |
| Table | DataFrame |
'.xlsx' |
| Geometry column | GeoSeries |
'.gpkg' |
| Vector layer | GeoDataFrame |
'.gpkg' |
GeoSeries,GeoDataFrame---Exported to'.gpkg'and opened (e.g., in QGIS)Series,DataFrame---Exported to'.xlsx'and opened (e.g., in LibreOffice)
Import on startup
To load the two functions plot and view on startup of python or ipython in the terminal, so that you can quickly use them anytime, use the following instructions for Linux. (On other operating systems, or other Python interfaces, look up analogous instructions of installing a startup script specific to your system.)
Create a startup script, such as ~/.python_startup.py:
from xplr import plot
from xplr import view
For the script to be automatically executed on python startup, add this in your .bashrc:
export PYTHONSTARTUP=~/.python_startup.py
In addition, for the script to be automatically executed on ipython startup, create ipython profiles (if you don't already have them):
ipython profile create
Then, uncomment the following expression in ~/.ipython/profile_default/ipython_config.py:
c.InteractiveShellApp.exec_PYTHONSTARTUP = True
Metadata
Release files for xplr 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xplr-0.0.2.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xplr-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / xplr-0.0.2.tar.gz
| Download URL | xplr-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f7f5f440cc51583599f118ce3d65a9062f992e11c540fd2302971a69deee245
|
|
BLAKE2b-256 checksum How to use checksums |
61b44a48e4997b86150b128c3d18499c1ac169f3cc21dc683dbfd5813a709c32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / xplr-0.0.2-py3-none-any.whl
| Download URL | xplr-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f41200fc37b140fdb21e13b93cd86b7c24fde5e8c371fa26f85847352f1865d5
|
|
BLAKE2b-256 checksum How to use checksums |
02173e420f0cd1e654e9d479dc454887a2ae1d690aee2eec18e8802bbefdcefb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|