June 2017
Beginner to intermediate
296 pages
7h 4m
English
So let's see if it works. Go up to the Tools menu and go to Canopy Command Prompt, or do whatever you do to get your Command Prompt, and we'll type in spark-submit friends-by-age.py, and get our code running.
We'll get the usual warnings that we see whenever we run something locally, which are safe to ignore, and we should quickly get a result:

This is all random data, there's really no meaning behind it that you can try to glean, but just through random luck of the draw it turns out that 63-year-olds are pretty popular, with 384 friends on average. So there you have it, our average number of friends by age script. It illustrates ...
Read now
Unlock full access