fonnesbeck/pytenn2014_tutorial — pull request #1 by lluang (2014-06-23 16:32:05+00:00)
Title: Update Part 1. Data Wrangling with Pandas.ipynb data.ix[7, 'year'] = nan   "name 'nan' is not defined"

this line (Missing data) section missing data, returns a "name 'nan' is not defined"

data.ix[7, 'year'] = nan

Cast to float so that the cell compiles correctly.

data.ix[7, 'year'] = float('Nan')

Alternative is to use the numpy nan

data.ix[7, 'year'] = np.nan