Explore data visually with Python tools

Combine Python, Pygwalker, Pandas, and Jupyter Notebook for a dynamic visual interface to your data.
1 reader likes this.
Hands on a keyboard with a Python book

WOCinTech Chat. Modified by Opensource.com. CC BY-SA 4.0

Open source tools have been instrumental in advancing technology and making it more accessible to everyone. Data analysis is no exception. As data becomes more abundant and complex, data scientists always look for ways to simplify their workflow and create interactive and engaging visualizations. PyGWalker is designed to solve such problems.

PyGWalker (Python binding of Graphic Walker) connects a working environment of Python Jupyter Notebook to Graphic Walker to create an open source data visualization tool. You can turn your Pandas dataframe into a beautifully crafted data visualization with simple drag-and-drop operations.

Exploring data through a visual interface with Pygwalker

(Bill Wang, CC BY-SA 4.0)

Get started with PyGWalker

Use pip to install PyGWalker:

$ python3 -m pip install pygwalker

Import pygwalker and pandas to use it in a project:

import pandas as pd
import pygwalker as pyg

Load data into a Pandas datagram and call PyGWalker:

df = pd.read\_csv('./bike\_sharing\_dc.csv', parse\_dates=\['date'\])
gwalker = pyg.walk(df)

You now have a graphical UI to explore and visualize your Pandas dataframe!

Explore data with Graphic Walker

One of the key features of Graphic Walker is the ability to change mark types to create different kinds of charts. For example, create a line chart by changing the mark type to a line.

Line charts generated by Pygwalker

(Bill Wang, CC BY-SA 4.0)

You can also compare different measures by creating a concat view, which adds more than one measure into rows and columns.

Comparing data in the Graphic Walker interface.

(Bill Wang, CC BY-SA 4.0)

Put dimensions into rows or columns to create a facet view of several subviews divided by the value in a dimension.

The facets view in Graphic Walker.

(Bill Wang, CC BY-SA 4.0)

In the Data tab, you can view the data frame in a table and configure the analytic and semantic types.

Table data in Graphic Walker.

(Bill Wang, CC BY-SA 4.0)

Data exploration with PyGWalker

You can turn your Pandas data into graphical and highly-customizable charts with PyGWalker. You can also use PyGWalker as a powerful tool for exploring data to uncover underlying patterns, trends, and insights.

Data exploration options are available in the Exploration Mode option (in the toolbar). They can be set to either Point Mode or Brush Mode.

  • Point Mode: Explore data by pointing your mouse cursor at a specific segment of the data.
  • Brush Mode: Explore data by drawing a selection box around a range of data and then drag it to see generated insights.

Try this to see your data

You can try PyGWalker on these cloud demos: Google Colab, Binder, or Graphic Walker Online Demo.

PyGWalker is an excellent tool for simplifying data analysis and visualization workflows, particularly for those who want a visual interface for Pandas. With PyGWalker and Graphic Walker, data scientists can easily create stunning visualizations with simple drag-and-drop operations in Jupyter Notebook. Check out the PyGWalker Git repository for the source code.

For data scientists who seek an open source solution to automated data exploration and advanced augmented analytics, the project also works on RATH, an open source auto-EDA, AI-empowered data exploration and visualization tool. You can also check out the RATH Git repository for the source code and an active community.

Avatar
Welcome to my profile! My name is Bill Wang and I am a writer and open-source contributor. I have a passion for sharing knowledge and contributing to the community through my writing and open-source projects. I have contributed to various open-source projects on GitHub, and you can find my work at https://github.com/p1ng-request/.

Comments are closed.

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.