DataFrame.to_string ignores col_space when header=False #8230

Closed
0zeroth opened this Issue Sep 10, 2014 · 1 comment

Comments

Projects
None yet
2 participants

0zeroth commented Sep 10, 2014

import pandas as pd
df = pd.DataFrame([[0,1,2]], index=['Sum'], columns=['A','B','C'])
print(df.to_string(col_space=20))
print(df.to_string(col_space=20, header=False))

Output:

                       A                    B                    C 
Sum                    0                    1                    2
Sum  0  1  2

(a minor irritation...)

jreback added this to the 0.15.0 milestone Sep 10, 2014

Contributor

jreback commented Sep 10, 2014

closed by #8233

jreback closed this Sep 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment