Skip to content

Commit

Permalink
Get rid of direct import of nan
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Aug 7, 2017
1 parent 929c66f commit ee260b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pandas/core/sparse/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import division
# pylint: disable=E1101,E1103,W0231,E0202

from numpy import nan
from pandas.compat import lmap
from pandas import compat
import numpy as np
Expand Down Expand Up @@ -156,7 +155,7 @@ def _init_dict(self, data, index, columns, dtype=None):
v = v.copy()
else:
if isinstance(v, dict):
v = [v.get(i, nan) for i in index]
v = [v.get(i, np.nan) for i in index]

v = sp_maker(v)
sdict[k] = v
Expand Down

0 comments on commit ee260b8

Please sign in to comment.