updated ipython notebook for data cleaning