Skip to content

changed _pfixed in common.py to add a leading space to positive numbers #38

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

Merged
merged 1 commit into from Mar 22, 2011
Merged

changed _pfixed in common.py to add a leading space to positive numbers #38

merged 1 commit into from Mar 22, 2011

Conversation

ghost
Copy link

@ghost ghost commented Mar 22, 2011

So the results of DataFrame.toString() without any float_format argument is aligned around the period. I think it looks much better. :)

@wesm wesm merged commit 093f4f4 into pandas-dev:master Mar 22, 2011
@wesm
Copy link
Member

wesm commented Mar 22, 2011

I made some tweaks to "tighten up" the output and to align the first digit with the column name (- sign goes 1 place left). Thanks for pointing this out

wesm@a99ec7d

for example

                       A           B           C           D           
2000-01-03 00:00:00    0.3338     -1.77       -0.6591     -0.7264     
2000-01-04 00:00:00   -0.6862      0.7062      0.1209      0.1012     
2000-01-05 00:00:00   -0.2565     -1.046       0.07693    -1.098      
2000-01-06 00:00:00   -1.013       0.04152    -1.135      -0.4666     
2000-01-07 00:00:00    1.54       -0.6335     -0.5739     -0.6041     
2000-01-10 00:00:00    0.4512      1.433       0.7065      1.072      
2000-01-11 00:00:00   -0.9828      1.688      -0.7222     -0.8129     
2000-01-12 00:00:00    0.5295      0.2504     -1.773      -0.9227     
2000-01-13 00:00:00    1.263       0.5591     -1.044      -0.8795     
2000-01-14 00:00:00   -2.601       0.08231     0.4435      0.6444     
2000-01-17 00:00:00   -0.8637     -0.6598      2.876       1.26       
2000-01-18 00:00:00   -0.3461      1.155       0.2102      0.9326     
2000-01-19 00:00:00    1.363      -1.143      -0.9518      0.6028     
2000-01-20 00:00:00   -0.4869      0.537       0.4725      0.4718     
2000-01-21 00:00:00   -0.3899      0.2295      0.3365      0.4831     
2000-01-24 00:00:00    1.309       1.119      -0.1056     -2.378      
2000-01-25 00:00:00    0.1113      0.4509     -1.272       0.7616     
2000-01-26 00:00:00   -0.9279      1.349       0.3495      0.3751     
2000-01-27 00:00:00   -0.7842     -0.73        0.957       0.5198     
2000-01-28 00:00:00    0.0791      0.9227     -1.162      -0.2816     
2000-01-31 00:00:00    0.0999     -0.4302     -0.4136     -1.048      
2000-02-01 00:00:00   -0.3671      1.033      -0.9988     -1.471      
2000-02-02 00:00:00    1.663       2.935       2.393      -2.073      
2000-02-03 00:00:00   -0.2694      1.175      -0.5285      0.1282     
2000-02-04 00:00:00   -2.311       0.5304      0.9773      0.5586     
2000-02-07 00:00:00    0.135      -0.4709      0.6543      0.6791     
2000-02-08 00:00:00    0.9345      0.1598      0.8415      0.9543     
2000-02-09 00:00:00   -0.7147      1.355      -0.953      -0.1241     
2000-02-10 00:00:00    0.5206     -1.048      -0.002393   -0.471      
2000-02-11 00:00:00    0.5671      0.207       0.1148     -0.8669     

@ghost
Copy link
Author

ghost commented Mar 22, 2011

You're welcome. It looks good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant