From 2c454f81a7f896eae22ed193ada201577667af15 Mon Sep 17 00:00:00 2001 From: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Date: Tue, 4 Oct 2022 11:42:04 +0200 Subject: [PATCH] Fix key error bug (#2705) --- openbb_terminal/helpers_denomination.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbb_terminal/helpers_denomination.py b/openbb_terminal/helpers_denomination.py index 3e57e32de81..7e66d27515a 100644 --- a/openbb_terminal/helpers_denomination.py +++ b/openbb_terminal/helpers_denomination.py @@ -4,7 +4,9 @@ from typing import Literal, Tuple, Callable, Dict import pandas as pd from pandas._typing import Axis -DENOMINATION = Literal["Trillions", "Billions", "Millions", "Thousands", "Units", ""] +DENOMINATION = Literal[ + "Trillions", "Billions", "Millions", "Tens of thousands", "Thousands", "Units", "" +] def transform( @@ -67,6 +69,7 @@ def get_denominations() -> Dict[DENOMINATION, float]: "Trillions": 1_000_000_000_000, "Billions": 1_000_000_000, "Millions": 1_000_000, + "Tens of thousands": 10_000, "Thousands": 1_000, "Units": 1, }