The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

408002 (5) [Avatar] Offline
#1
At the end of Chapter2.1 - Hello Dask ipynb I am getting the following error:

In [6]:

columns_to_drop = missing_count_pct[missing_count_pct > 60].index
df_dropped = df.drop(columns_to_drop, axis=1).persist()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-6-f9c9aebbd813> in <module>()
----> 1 columns_to_drop = missing_count_pct[missing_count_pct > 60].index
2 df_dropped = df.drop(columns_to_drop, axis=1).persist()

NameError: name 'missing_count_pct' is not defined

What is the reason?
Shuyib (21) [Avatar] Offline
#2
Hey! Try and run the cells above the one you're running. That should fix it. The error you've submitted means you haven't made the variable yet.
408002 (5) [Avatar] Offline
#3
Thank you for recommendation and my apologies: I did not wait for completion of evaluation of previous cell. It works fine now.
Jesse C. Daniel (6) [Avatar] Offline
#4
Thanks for the help, Shuyib. I've gone back and double checked the code anyways just to make sure there weren't any typos.