Skip to content

BUG: options.column_space doesn't behave at expected #7576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
clham opened this issue Jun 26, 2014 · 3 comments · Fixed by #47280
Closed

BUG: options.column_space doesn't behave at expected #7576

clham opened this issue Jun 26, 2014 · 3 comments · Fixed by #47280
Labels
Deprecate Functionality to remove in pandas Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@clham
Copy link
Contributor

clham commented Jun 26, 2014

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?

@jreback jreback modified the milestones: 0.14.1, 0.15.0 Jun 26, 2014
@jreback
Copy link
Contributor

jreback commented Jun 26, 2014

I think this should be removed entirely: #2422

(col_space seems to be the option)

@jreback
Copy link
Contributor

jreback commented Jun 26, 2014

related: #2328

@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 6, 2015
@jreback
Copy link
Contributor

jreback commented Jul 6, 2018

not really sure if this even works, we don't test this explicity at all. contributions welcome.

so should prob just deprecate this.

@jreback jreback modified the milestones: Contributions Welcome, 0.24.0 Jul 6, 2018
@jreback jreback modified the milestones: 0.24.0, Contributions Welcome Nov 6, 2018
@jreback jreback modified the milestones: Contributions Welcome, 1.5 Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants