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
October 15, 2018

Add Custom Domain and TLS Certificate to Your Secure Cloud App

Secure your cloud app end to end. Use a custom domain with TLS certificate for apps deployed on IBM Cloud Kubernetes Service.

Continue reading

October 12, 2018

Cloud Functions Package Design and Best Practices

Whether they're JARs, libs, Gems, or modules, successful programming languages provide an ability to share and re-use code. IBM Cloud Functions is no different—it enables developer productivity through installable packages. But what makes a good package?

Continue reading

October 5, 2018

Deploying a Microservices-Based Solution to Cloud Foundry Enterprise Environment (CFEE)

With Cloud Foundry Enterprise Environment (CFEE), you can instantiate multiple, isolated, enterprise-grade Cloud Foundry platforms on demand. Instances of the CFEE service run within your own account in IBM Cloud.

Continue reading