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.

More How-tos stories

Custom login page for App ID integration

When developing an application that integrates with App ID, the standard hosted login page has a few options to change the colours or logo. In some cases, this isn't enough and direct customisation is necessary. There exists a handy guide for a custom App ID login screen in mobile applications, however for web applications a little more effort is required.

Continue reading

Modernize your apps with containers, Kubernetes and AI

Follow the GitHub tutorial and video to update JPetStore, a traditional Java web app, into a modern sales channel using Docker containers, Kubernetes, Watson Visual Recognition and text messaging.

Continue reading

Extend your global reach with Ready for IBM Cloud branding for your Cloud Solution

If you are an Independent Software Vendor, Managed Service Provider or Cloud Solution Provider you have the opportunity to extend your brand, validate your technology and gain global exposure with the Ready for Cloud mark.

Continue reading