INNER CODE UNIT · Python
as_currency
HHammond/PrettyPandas · prettypandas/formatters.py:85
def as_currency(currency='USD', locale=LOCALE_OBJ):
@_surpress_formatting_errors
def inner(v):
return numbers.format_currency(v, currency=currency, locale=LOCALE_OBJ)
return inner