June 2017
Beginner to intermediate
296 pages
7h 4m
English
Okay, let's try and improve upon our word-count script. In the download package for this book, you should find a word-count-better.py script. Download that, save it into your SparkCourse folder, and as usual, let's double-click it and take a look:

Alright, so you can see this is a little bit more complicated than what we had before:

We have a lot of the same stuff as before in this script. The main difference is that when we're calling flatMap, instead of just using a lambda ...
Read now
Unlock full access