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 / Developer Advocate

More How-tos stories
December 13, 2018

Java Microservices with MicroProfile – API Documentation

To benefit from the reuse and consistency microservice APIs offer, other developers will need guidance to use your APIs correctly. With annotations defined in the MicroProfile OpenAPI specification from Java EE, it's easy to generate clear documentation.

Continue reading

December 13, 2018

Tutorial: Deploying the Jenkins Helm Community Chart on IBM Cloud Kubernetes Service

The IBM Hybrid Cloud Team has authored a tutorial that will guide you through the steps required to set up and install a Jenkins server and deploy a sample Node and React application on IBM Cloud Kubernetes Service.

Continue reading

December 12, 2018

Deploying to IBM Cloud Private 3.1 with IBM Cloud Developer Tools CLI

IBM Cloud Developer Tools CLI version 2.1.12 adds deployment support for IBM Cloud Private 3.1.

Continue reading