Skip to content

Commit ee260b8

Browse files
committed
Get rid of direct import of nan
1 parent 929c66f commit ee260b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/sparse/frame.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from __future__ import division
66
# pylint: disable=E1101,E1103,W0231,E0202
77

8-
from numpy import nan
98
from pandas.compat import lmap
109
from pandas import compat
1110
import numpy as np
@@ -156,7 +155,7 @@ def _init_dict(self, data, index, columns, dtype=None):
156155
v = v.copy()
157156
else:
158157
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]
160159

161160
v = sp_maker(v)
162161
sdict[k] = v

0 commit comments

Comments
 (0)