BUG: options.column_space doesn't behave at expected · Issue #7576 · pandas-dev/pandas (original) (raw)
The column_space
option doesn't seem to work.
In [28]: df=pd.DataFrame(np.array([np.random.randn(6), np.random.randint(1,9,6)*.1,
np.zeros(6)]).T, columns=['A', 'B', 'C'], dtype='float')
In [29]: pd.set_option('column_space', 12)
In [30]: df
Out[30]:
A B C
0 0.865356 0.1 0
1 -0.968568 0.2 0
2 -0.584314 0.8 0
3 0.347676 0.6 0
4 0.296440 0.8 0
5 -0.129957 0.2 0
In [31]: pd.set_option('column_space', 2)
In [32]: df
Out[32]:
A B C
0 0.865356 0.1 0
1 -0.968568 0.2 0
2 -0.584314 0.8 0
3 0.347676 0.6 0
4 0.296440 0.8 0
5 -0.129957 0.2 0
In frame.py
, the option seems to be named col_space
but the doc string wasn't updated in config_init.py
. Happy to PR this, but, what is the agreed upon name/behavior? I like col_space
? Does anyone have any background/history?