Computational investing, part I: homework 3 (fill NAN values)