Plotting

So, let's move along!

We will now take a look at plotting some of the data we collected in our Spark DataFrame. You can use matplotlib and pandas to create almost an endless number of visualizations (once you understand your data well enough).

You may even find that, once you reach this point, generating visualizations is quite easy but then you can spend an almost endless amount of time getting them clean and ready to share with others.

We will now look at a simple example of how this process might go.

Starting with the Spark DataFrame from the previous section, suppose that we think that it would be nice to generate a simple bar chart based upon the DATE field within our data. So, to get going, we can use the following code to ...

Get Hands-On Machine Learning with IBM Watson now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.