diff --git a/pydeflate/core/api.py b/pydeflate/core/api.py index 60d9345..2c8c227 100644 --- a/pydeflate/core/api.py +++ b/pydeflate/core/api.py @@ -259,7 +259,6 @@ def __init__( target_currency = resolve_common_currencies( target_currency, deflator_source.name ) - self.exchange_rates = Exchange( source=exchange_source, source_currency=source_currency, @@ -319,7 +318,7 @@ def _calculate_deflator_value( pd.Series: Series with combined deflator values. """ return ( - exchange_def / (price_def * exchange_rate) + (10_000 * exchange_rate) / (price_def * exchange_def) if self.to_current else (price_def * exchange_def) / (10_000 * exchange_rate) )