tostring is not really a public method
In [1]: df = DataFrame({'A' : [1,2,3], 'B' : [4,5,6]})
In [2]: df.columns
Out[2]: Index([u'A', u'B'], dtype=object)
# returns the repr
In [3]: str(df.columns)
Out[3]: "Index([u'A', u'B'], dtype=object)"
# a list
In [4]: df.columns.tolist()
Out[4]: ['A', 'B']
# they act like a list
In [6]: ','.join(df.columns)
Out[6]: 'A,B'