How-tos

Analyze and visualize open data with Apache Spark

Share this post:

Many government agencies and public administrations offer access to data, contributing to open data. Using IBM Watson Studio with Jupyter Notebooks and Apache Spark it is simple to retrieve, combine and analyze data from different sources. The result can be easily visualized. Learn what it takes with this IBM Cloud solution tutorial.

Architecture: Open Data Analytics

Architecture: Open Data Analytics

Overview

In the tutorial, you are going to use IBM Watson Studio to organize all required resources. Watson Studio serves as glue around the data, cloud object storage, Apache Spark as compute platform, and Jupyter Notebooks. A notebook is an open-source web application that contains live code, equations, visualizations and narrative text.

You are going to combine open data about country population, life expectancy rates and country ISO codes. First, data is loaded into so-called data frames. Then, because data from different sources may have a different format, you tranform the frames. Thereafter, analyze the data using SQL. By utilizing the PixieDust library, even visualizations are easily done. The following screenshot shows how life expectancy rate be country can be depicted on a zoomable map.

Mapping Life Expectancy

Mapping Life Expectancy

Conclusions

With few steps, you can retrieve open data sets from different sources. Then, combine and analyze them in a Jupyter Notebook in Watson Studio and visualize the data. Try it yourself by following this tutorial “Analyze and visualize open data with Apache Spark“. Also, check out the other IBM Cloud solution tutorials in the IBM Cloud documentation.

If you have feedback, suggestions, or questions about this post, please reach out to me on Twitter (@data_henrik) or LinkedIn.

Technical Offering Manager

More How-tos stories
August 13, 2018

CI/CD Pipeline for OpenWhisk Functions Using Whisk Deploy

The article presents a technique for developing a CI/CD pipeline in IBM Cloud for OpenWhisk functions using Whisk Deploy configuration cataloged in GitHub.

Continue reading

August 8, 2018

Creating A Microservice Data Lake With IBM Cloud Object Storage and IBM SQL Query

Is your application's data a stream trickling into a puddle or a rising tide overwhelming the levees? Either way, IBM has you covered with tools to store, retrieve, query, and gain insights from data of any size.

Continue reading

August 2, 2018

Connecting to IBM Cloud Object Store in Kubernetes

Operationalizing IBM SQL Query: Part 2. In this article, we'll take a look at the best practices for connecting to IBM Cloud Object Storage from docker containers deployed in the IBM Cloud Kubernetes Service.

Continue reading