Final cleanup

Here, we are at the end of the classification task. Remember to remove all the variables that you've used and the temporary table that you've created from the cache:

In: bc_sample_rates.unpersist()    sampled_train_df.unpersist()    train.unpersist()

After the Spark memory is cleared, we can turn off the Jupyter notebook.

Get Python Data Science Essentials - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.