remove direct import of nan
Is there a tag I can put into the PR to avoid having a full Travis run for tiny things like this?

 - [ ] closes #xxxx
 - [ ] tests added / passed
 - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff``
 - [ ] whatsnew entry
