Fix key error bug (#2705)

This commit is contained in:
Colin Delahunty
2022-10-04 11:42:04 +02:00
committed by GitHub
parent 8918efba54
commit 2c454f81a7

View File

@@ -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,
}