Browse Source

Update util.py

pull/295/head
Hektor Suhr 9 years ago
parent
commit
5be1b4434b
  1. 5
      pygal/util.py

5
pygal/util.py

@ -39,6 +39,11 @@ def float_format(number):
def humanize(number):
"""Format a number to engineer scale"""
try:
int(number)
float(number)
except TypeError:
number = number.values[0]
if is_list_like(number):
return', '.join(map(humanize, number))
if number is None:

Loading…
Cancel
Save