pydeflate 2.3.1__py3-none-any.whl → 2.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pydeflate/sources/common.py +6 -0
- pydeflate/sources/imf.py +5 -4
- {pydeflate-2.3.1.dist-info → pydeflate-2.3.3.dist-info}/METADATA +1 -1
- {pydeflate-2.3.1.dist-info → pydeflate-2.3.3.dist-info}/RECORD +6 -6
- {pydeflate-2.3.1.dist-info → pydeflate-2.3.3.dist-info}/WHEEL +0 -0
- {pydeflate-2.3.1.dist-info → pydeflate-2.3.3.dist-info}/licenses/LICENSE +0 -0
pydeflate/sources/common.py
CHANGED
|
@@ -107,9 +107,15 @@ def add_pydeflate_iso3(
|
|
|
107
107
|
additional_mapping={
|
|
108
108
|
"World": "WLD",
|
|
109
109
|
"European Union": "EUR",
|
|
110
|
+
"European Union (EU)": "EUR",
|
|
111
|
+
"Euro area": "EUR",
|
|
112
|
+
"Euro Area (EA)": "EUR",
|
|
110
113
|
"EU Institutions": "EUI",
|
|
111
114
|
"DAC countries": "DAC",
|
|
115
|
+
"DAC Countries, Total": "DAC",
|
|
116
|
+
"Total DAC": "DAC",
|
|
112
117
|
"Kosovo": "XXK",
|
|
118
|
+
"Kosovo, Republic of": "XXK",
|
|
113
119
|
"G7": "G7C",
|
|
114
120
|
"Sub-Sahara Africa": "SSA",
|
|
115
121
|
},
|
pydeflate/sources/imf.py
CHANGED
|
@@ -168,10 +168,10 @@ def _create_eur_series(df: pd.DataFrame) -> pd.DataFrame:
|
|
|
168
168
|
.set_index("year")["EXCHANGE"]
|
|
169
169
|
)
|
|
170
170
|
|
|
171
|
-
# Apply France's exchange rates to rows
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
].map(eur)
|
|
171
|
+
# Apply France's exchange rates to Euro Area rows (entity_code G163) with matching year
|
|
172
|
+
# Note: IMF WEO uses "G163" as the entity code for "Euro Area (EA)"
|
|
173
|
+
euro_area_mask = df.entity_code == "G163"
|
|
174
|
+
df.loc[euro_area_mask, "EXCHANGE"] = df.loc[euro_area_mask, "year"].map(eur)
|
|
175
175
|
return df
|
|
176
176
|
|
|
177
177
|
|
|
@@ -204,6 +204,7 @@ _IMF_CACHE_ENTRY = CacheEntry(
|
|
|
204
204
|
filename="imf_weo.parquet",
|
|
205
205
|
fetcher=_download_weo,
|
|
206
206
|
ttl_days=60,
|
|
207
|
+
version="2", # Bump version to invalidate cache when EUR mapping fix is applied
|
|
207
208
|
)
|
|
208
209
|
|
|
209
210
|
|
|
@@ -23,12 +23,12 @@ pydeflate/schemas.py,sha256=XBfBVIQjie6IK5rsEn6MSBqv5IxRkKxa7xnc7UaH9kU,7779
|
|
|
23
23
|
pydeflate/settings/emu.json,sha256=BIvbiMUeHUtCESR3sMcBNrS028yp2YraCJdhDJGvAAo,133
|
|
24
24
|
pydeflate/settings/oecd_codes.json,sha256=jAKI1EgQP4rttjoG3Z-44r1tUJrIEzPCZF5V2aboQhE,911
|
|
25
25
|
pydeflate/sources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
pydeflate/sources/common.py,sha256=
|
|
26
|
+
pydeflate/sources/common.py,sha256=yREQjj9HuGXEQIs92YYTHS_2YLvX2bSRzq77kE3QCPQ,8737
|
|
27
27
|
pydeflate/sources/dac.py,sha256=RkO_nFZcp8AeSJNFzdBrGqaL2kLVUeXBHTPO6PkUFy0,3824
|
|
28
|
-
pydeflate/sources/imf.py,sha256=
|
|
28
|
+
pydeflate/sources/imf.py,sha256=qMNnJHSjaRygcU2X3WCo9kQVwKDK3Us9TqIBN-sZuRw,6893
|
|
29
29
|
pydeflate/sources/world_bank.py,sha256=1DzDlr0Xe0DA0OUsycjwiq-4yMasnP0TneXEK0VmcRw,7281
|
|
30
30
|
pydeflate/utils.py,sha256=HRVMUuWKS1IpU8lmkvQN1jIMA5-LEFzyEd0ReZSx65k,4252
|
|
31
|
-
pydeflate-2.3.
|
|
32
|
-
pydeflate-2.3.
|
|
33
|
-
pydeflate-2.3.
|
|
34
|
-
pydeflate-2.3.
|
|
31
|
+
pydeflate-2.3.3.dist-info/licenses/LICENSE,sha256=8ymAThz7Z4JhjqL6vDwTaoq29tFytQRDkoW3rnTGstI,1075
|
|
32
|
+
pydeflate-2.3.3.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
33
|
+
pydeflate-2.3.3.dist-info/METADATA,sha256=lhzr6vL37M1fA9kbN-JLROZCXVocjUSuCFm5yYKPZE8,20555
|
|
34
|
+
pydeflate-2.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|