Default all floating number displays to 2 decimals

This commit is contained in:
Marty Oehme 2022-09-07 12:08:38 +02:00
parent 2df0f62d7a
commit 039e676210
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
3 changed files with 1 additions and 3 deletions

View File

@ -192,8 +192,6 @@ totals = df.loc[
]
electricityaid = totals[totals['DONOR'] < 20000] # drop all 'total' aggregations
pd.options.display.float_format = "{:.2f}".format
el_grouped = electricityaid.groupby(['Year', 'Flow']).agg({'Value': ['sum']})
el_grouped.style.format(escape="latex")
el_grouped

View File

@ -229,7 +229,6 @@ when the amount first increased to 800m USD in 2019 and subsequently to over 1.7
#| label: tbl-uga-aid-watersupply
#| tbl-cap: "ODA projects of water and sanitation supply in Uganda per year, separated by project type"
#| column: page
pd.options.display.float_format = "{:.2f}".format
# 14020-22 - large scale potable water
# 14030-32 - individual-level water and sanitation supply

View File

@ -9,6 +9,7 @@ nocite: |
```{python}
svg_render = True
pd.options.display.float_format = "{:.2f}".format
```
{{< include _drivers-of-inequality-vietnam.qmd >}}