Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

align columns to left pandas python


# Test data
df = DataFrame({'text': ['foo', 'bar'],
                 'number': [1, 2]})

df.style.set_properties(**{'text-align': 'right'})

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #align #columns #left #pandas #python
ADD COMMENT
Topic
Name
2+6 =