PyGWalker
Jupyter
Data analysis and data visualization workflows for notebooks can be simplified by panda
converting data frames into Tableau
stylized user interfaces for visual exploration.
PyGWalker
(pronounced like " Pig Walker
", just for fun) is named an acronym for " Graphic Walker
bind Python
". It integrates with Jupyter
Notebook (or other Jupyter
Notebook-based) and Graphic Walker
, which is Tableau
another open source alternative. It allows data scientists to analyze data and visualize patterns with simple drag and drop.
Install
Before using pygwalker, make sure to install the package via the command line using pip.
pip install pygwalker
For early access, you can use
pip-install-pygwalker
Install –Upgrade to keep your version up to date with the latest version, and evenpip-install-git+https://github.com/Kanaries/pygwalker@main
get the latest features andbug
fixes.
In Jupyte
r notebook usepygwalker
Import pygwalker
and panda
import into your Jupyter
notebook to get started.
import pandas as pd
import pygwalker as pyg
You can use it without breaking your existing workflow pygwalker
. For example, you can call LoadDataFrame's with Graphic Walker
:
df = pd.read_csv('./bike_sharing_dc.csv', parse_dates=['date'])
gwalker = pyg.walk(df)
You can even try it online, just visit Binder
, Google Colab
or Kaggle Code
.
That's it. Now you have a similar Tableau
user interface to analyze and visualize data by dragging and dropping variables.
You can do some cool things with Graphic Walker:
- You can change the marker type to other types to make different charts, for example, a line chart:
- To compare different measures, you can create a concave view by adding multiple measures into rows/columns.
- To create a faceted view of multiple subviews divided by values in a dimension, put the dimensions into rows or columns to create the faceted view. The rules are similar to Tableau.
- You can view the data frame in the table, and configure the analysis type and semantic type.