We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555e42f commit 2a03b96Copy full SHA for 2a03b96
pandas_datareader/econdb.py
@@ -90,10 +90,13 @@ def show_func(x):
90
def show_func(x):
91
return x[: x.find(":")]
92
93
+ unique_keys = {k for s in results for k in s['additional_metadata']}
94
for entry in results:
95
series = pd.DataFrame(entry["data"])[["dates", "values"]].set_index("dates")
96
head = entry["additional_metadata"]
-
97
+ for k in unique_keys:
98
+ if k not in head:
99
+ head[k] = '-1:None'
100
if head != "": # this additional metadata is not blank
101
series.columns = pd.MultiIndex.from_tuples(
102
[[show_func(x) for x in head.values()]],
0 commit comments