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
In [1]: s = '0123456789' * 10
In [2]: tmp = np.array([s]).astype(str)
In [3]: s = Series([s])
In [4]: s.values
Out[4]: array([ '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'], dtype=object)
In [5]: s.values.astype(str)
Out[5]:
array(['0123456789012345678901234567890123456789012345678901234567890123'],
dtype='|S64')
i don't have the patience right now to recompile everything...anyone want to try this out on numpy master? i guess we leave it open until that numpy release
When converting a pandas Series object to type string using
astype(str)
, long strings are truncated to 64 characters silently.Pandas version: 0.12
Numpy version: 1.7.1
The text was updated successfully, but these errors were encountered: