Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python tabulate float format

print tabulate([["pi",3.141593],["e",2.718282]], floatfmt=".2f")
# --  ----
# pi  3.14
# e   2.71
# --  ----
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #tabulate #float #format
ADD COMMENT
Topic
Name
7+6 =