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
When index=False an extra column is added because the leading comma is never removed.
def toCSV(self, path, nanRep='', cols=None, header=True, index=True, mode='wb'):
*<snip>*
for idx in self.index:
if index:
f.write(str(idx))
for col in cols:
*<snip>*
f.write(',%s' % val)
The text was updated successfully, but these errors were encountered:
what version of the code are you looking at? i think this got fixed on 3/15 which was post 0.3.0 release
for idx in self.index:
if index:
f.write(str(idx))
for i, col in enumerate(cols):
val = series[col].get(idx)
if isnull(val):
val = nanRep
else:
val = str(val)
if i > 0 or index:
f.write(',%s' % val)
else:
f.write('%s' % val)
f.write('\n')
When index=False an extra column is added because the leading comma is never removed.
The text was updated successfully, but these errors were encountered: