June 2018
Intermediate to advanced
330 pages
9h 47m
English
There are two ways to produce histograms in PySpark:
The former solution will work for small datasets (such as ours in this chapter) but it will break your driver if the data is too big. Moreover, there's a good reason why we distribute the data so we can do the computations in parallel instead of in a single thread. Thus, in this recipe, we will only show you the second solution. Here's the snippet that does all the calculations for us:
histogram_MPG = ( no_outliers
Read now
Unlock full access