Skip to content

Align tables to the right instead of centering values

For better readability and easy comparison, it would be better to align the values to the right of the cells rather than centering them, except for the first column that should be aligned to the left:

Before

tag predicted matched Precision Recall F1 Support
surname_household 5121 3989 0.779 0.873 0.823 4571
surname 14870 13560 0.912 0.88 0.895 15417
occupation 13095 11820 0.903 0.904 0.903 13077
observation 286 211 0.738 0.544 0.626 388
civil_status 8478 8306 0.98 0.977 0.978 8500
birth_date 6078 5898 0.97 0.976 0.973 6040
age 13214 12301 0.931 0.937 0.934 13128
All 119442 109772 0.919 0.923 0.921 118946

After

tag predicted matched Precision Recall F1 Support
surname_household 5121 3989 0.779 0.873 0.823 4571
surname 14870 13560 0.912 0.88 0.895 15417
occupation 13095 11820 0.903 0.904 0.903 13077
observation 286 211 0.738 0.544 0.626 388
civil_status 8478 8306 0.98 0.977 0.978 8500
birth_date 6078 5898 0.97 0.976 0.973 6040
age 13214 12301 0.931 0.937 0.934 13128
All 119442 109772 0.919 0.923 0.921 118946