A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/81 below:

bug in DataFrame/DataMatrix toCSV method when index=False · Issue #81 · pandas-dev/pandas · GitHub

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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4