Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

FormatTemplate.money with other currencies

$
0
0

Hi,

this should be relatively simple but I’m just not getting it. I want to use the FormatTemplate to format a dashtable. However, I want to use £ or € instead. How should I go about doing this?

formatting = FormatTemplate.money(0)
currency = df.index.get_level_values("currency_code").unique()[0]

# This does not work and puts dash into an infinite loop
formatting._specifier["symbol"] = currency_map[currency]

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles