A project providing a Graphic Walker Pane for use with HoloViz Panel.
Project description
✨ panel-graphic-walker
panel-graphic-walker
provides the GraphicWalker
Pane to utilize the Graphic Walker data exploration tool within notebooks and Panel data applications.
This project is in early stages, so if you find a version that suits your needs, it’s recommended to pin your version, as updates may introduce changes. Please note that displaying larger datasets (>= 10 MB) may not be possible depending on your environment.
Installation
Install panel-graphic-walker
via pip
:
pip install panel-graphic-walker
Usage
Basic Graphic Walker Pane
Here’s an example of how to create a simple GraphicWalker
pane:
import pandas as pd
import panel as pn
from panel_gwalker import GraphicWalker
pn.extension()
df = pd.read_csv("https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000)
GraphicWalker(df).servable()
Configuring Fields
You may also configure the fields
(data columns) manually:
import pandas as pd
import panel as pn
from panel_gwalker import GraphicWalker
pn.extension()
df = pd.read_csv("https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000)
fields = [
{
"fid": "t_county",
"name": "t_county",
"semanticType": "nominal",
"analyticType": "dimension",
},
{
"fid": "t_model",
"name": "t_model",
"semanticType": "nominal",
"analyticType": "dimension",
},
{
"fid": "t_cap",
"name": "t_cap",
"semanticType": "quantitative",
"analyticType": "measure",
},
]
GraphicWalker(df, fields=fields).servable()
Configuring the Appearance
By default, the appearance is determined by pn.config.theme
. However, you can manually change this, for example, to media
, which corresponds to the user's preference as set in the browser.
import pandas as pd
import panel as pn
from panel_gwalker import GraphicWalker
pn.extension()
df = pd.read_csv(
"https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000
)
GraphicWalker(df, appearance="media").servable()
Additional Configuration
Extra configuration options are available via the Graphic Walker API. For instance, you can change the language to Japanese:
import pandas as pd
import panel as pn
from panel_gwalker import GraphicWalker
pn.extension()
df = pd.read_csv(
"https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000
)
config = {
"i18nLang": "ja-JP"
}
GraphicWalker(df, config=config).servable()
API
Parameters
object
(DataFrame): The data for exploration.fields
(list): Optional specification of fields (columns).config
(dict): Optional additional configuration for Graphic Walker. See the Graphic Walker API for more details.
Vision
Our dream is that this package is super simple to use and supports your use cases:
- Great documentation including examples.
- Supports your preferred data backend including Pandas, Polars and DuckDB.
- Supports persisting and reusing Graphic Walker specifications.
- Scales to even the largest datasets only limited by your server or cluster.
❤️ Contributions
Contributions and co-maintainers are very welcome! Please submit issues or pull requests to the GitHub repository. Check out the DEVELOPER_GUIDE for more information.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file panel_graphic_walker-0.2.0.tar.gz
.
File metadata
- Download URL: panel_graphic_walker-0.2.0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 537d7940fb331dc721a85cd89430d03d01ad6212162e0c9e91163219cce231ca |
|
MD5 | 5215791645deafa09fb58dc22327e27b |
|
BLAKE2b-256 | aeeb57635a89b50ba223cafdc76f9793e0e9c3c0a232f3fe4aea797b8e9eedfc |
File details
Details for the file panel_graphic_walker-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: panel_graphic_walker-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61722f989b27da23254baef93a6a1f376282c4dae473ade553f37e1be0f50f67 |
|
MD5 | e311b9c5b7e541d3803d0a946bb0e64d |
|
BLAKE2b-256 | ce3d2b82b6b8c30284cf94d3ea9340e17ff03f3e8ee73a3b593b2e74b8640132 |