You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import numpy as np
from pandas import Series
s = Series(range(3))
s2 = s.map(lambda x: np.where(x == 0, 0, 1))
print s2.dtype
In pandas 0.6.0, this returned 'float64', but now it returns 'object'. This change requires us to explicitly specify some dtypes to pandas constructors as a workaround. If this is the desired behavior, we can live with it - but wanted to alert you guys.