File "/usr/local/lib/python2.7/dist-packages/pandas/core/internals.py", line 354, in downcast
Using downcast='infer', you can get a dtype=int64.
You also can change your column data type:
df = pd.DataFrame({'a': [0,1,2,3, None]}).fillna(0)
df.a = df.a.astype(np.int32)
You also can infer the data type on the data frame creation:
df = pd.DataFrame({'a': [0,1,2,3, None]}, dtype=np.int).fillna(0)
And your dtype will be int64.
Maybe this can help you,
My best regards,
Ivan Ogasawara
--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.