Get rid of direct import of nan · rs2/pandas@ee260b8 (original) (raw)
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | from __future__ import division |
| 6 | 6 | # pylint: disable=E1101,E1103,W0231,E0202 |
| 7 | 7 | |
| 8 | -from numpy import nan | |
| 9 | 8 | from pandas.compat import lmap |
| 10 | 9 | from pandas import compat |
| 11 | 10 | import numpy as np |
| @@ -156,7 +155,7 @@ def _init_dict(self, data, index, columns, dtype=None): | ||
| 156 | 155 | v = v.copy() |
| 157 | 156 | else: |
| 158 | 157 | if isinstance(v, dict): |
| 159 | -v = [v.get(i, nan) for i in index] | |
| 158 | +v = [v.get(i, np.nan) for i in index] | |
| 160 | 159 | |
| 161 | 160 | v = sp_maker(v) |
| 162 | 161 | sdict[k] = v |