dipanjanS / practical-machine-learning-with-python

Master the essential skills needed to recognize and solve complex real-world problems with Machine Learning and Deep Learning by leveraging the highly popular Python Machine Learning Eco-system.
Apache License 2.0
2.28k stars 1.65k forks source link

Ch3 : notebook_wrangle_data.ipynb #9

Closed sridhar-v closed 6 years ago

sridhar-v commented 6 years ago

getting the following error. (Im a Prof. utilizing your Book as Text book) Kindly help.

when i execute ln 4: describe_dataframe(df)

getting the following Error Dataframe Sample Rows::

NameError Traceback (most recent call last)

in () ----> 1 describe_dataframe(df) in describe_dataframe(df) 111 112 print("Dataframe Sample Rows::") --> 113 display(df.head(5)) 114 115 def cleanup_column_names(df,rename_dict={},do_inplace=True): NameError: name 'display' is not defined
raghavbali commented 6 years ago

Hi @sridhar-v Thanks for reaching out. The notebook somehow is missing the following import statement:

from IPython.display import display

Kindly use the above statement before executing the said line. We will update the notebook in a future push.

Do let us know if this helped.

raghavbali commented 6 years ago

solution provided. closing due to inactivity.