• Bokeh is a powerful tool for exploring and understanding your data or creating beautiful custom charts for a project or report.
  • Bokeh provides a Python API to create visual data applications in D3.js, without necessarily writing any JavaScript code.
  • It allows the use of standard Pandas and NumPy objects for plotting, including NumPy arrays, plain lists and Pandas series.
  • In the Python visualization space, Bokeh is the most ideal candidate for building interactive and dynamic visualizations across different mediums.

Data understanding is a crucial data analysis stage according to the CRISP-DM standard (Cross-industry standard process for data mining), and data visualisation is the most useful approach here. Bokeh library is designed for both interactivity and novel graphics, with or without a dedicated server or reliance on Javascript. This article will show how Bokeh is a powerful tool for exploring and understanding your data or creating beautiful custom charts for a project or report.

The article will take you through;

  • Using Bokeh to transform your data into visualizations
  • Customizing your visualizations using Bokeh
  • Adding interactivity to your visualizations

There is very detailed documentation at docs.bokeh.org, among other advantages. Quickstart user guide is definitely a must-try, for instance. In his project, Visualizing Anomalies in the Dataset, David Miller, a U.S.-based Python engineer at Education Ecosystem, notes that “Data visualization is key to understanding the information contained in the data. Interactive data visualizations provide valuable means for exploring data. Bokeh provides a Python API to create visual data applications in D3.js, without necessarily writing any JavaScript code.”

Installation Bokeh for Python environment requires the following commands:

conda install bokeh

or

pip install bokeh

There is a bokeh.sampledata module with prepared .csv and .db files with widely used datasets, for instance, Apple NASDAQ index, Airline on-time data for all flights departing etc.

In a nutshell, we will go through the process of Bokeh application creation that is a recipe for generating Bokeh documents. Typically, this is Python code run by a Bokeh server when new sessions are created.

#python #data visualization #bokeh #development #ai # ml & data engineering #article

How to Build Interactive Data Visualizations for Python with Bokeh
2.30 GEEK