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 90f155a commit 7c030f0Copy full SHA for 7c030f0
pandas_datareader/econdb.py
@@ -22,13 +22,19 @@ def url(self):
22
23
def read(self):
24
""" read one data from specified URL """
25
+ params = dict(s.split('=') for s in self.symbols.split('&'))
26
+ if 'from' in params:
27
+ self.start = pd.to_datetime(params['from'], format='%Y-%m-%d')
28
+ if 'to' in params:
29
+ self.end = pd.to_datetime(params['to'], format='%Y-%m-%d')
30
+
31
results = self.session.get(self.url).json()["results"]
32
df = pd.DataFrame({"dates": []}).set_index("dates")
33
34
if self._show == "labels":
35
36
def show_func(x):
- return x[x.find(":") + 1 :]
37
+ return x[x.find(":") + 1:]
38
39
elif self._show == "codes":
40
0 commit comments