Skip to content

Commit b80c74c

Browse files
committed
COMPAT: Do not pass iterator as index
1 parent fb4568d commit b80c74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas_datareader/google/quotes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def _read_lines(self, out):
2525
buffer = out.read()
2626
m = re.search('// ', buffer)
2727
result = json.loads(buffer[m.start() + len('// '):])
28-
return pandas.DataFrame(map(lambda x: float(x['l']), result),
29-
index=map(lambda x: x['t'], result))
28+
return pandas.DataFrame([float(x['l']) for x in result],
29+
index=[x['t'] for x in result])

0 commit comments

Comments
 (0)