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/7576 below:

options.column_space doesn't behave at expected · Issue #7576 · pandas-dev/pandas · GitHub

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?


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