I'm confronted with a nauseating issue dealing with the to_csv() function for DataFrame in pandas 0.14.0. I have a list of long numpy arrays as one column in the DataFrame df:
>>> df['col'][0]
array([ 0, 1, 2, ..., 9993, 9994, 9995])
>>> len(df['col'][0])
46889
>>> type(df['col'][0][0])
<class 'numpy.int64'>
If I save df by
df.to_csv('df.csv')
and open df.csv in LibreOffice, the corresponding column shows up like this:
[ 0, 1, 2, ..., 9993, 9994, 9995]
rather than listing all the 46889 numbers. I'm wondering if there's an approach that can force to_csv to list all numbers rather than showing up ellipsis?
df.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 2 entries, 0 to 1
Data columns (total 4 columns):
pair 2 non-null object
ARXscore 2 non-null float64
bselect 2 non-null bool
col 2 non-null object
dtypes: bool(1), float64(1), object(2)