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 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.