From 931cbfa44992d35d93a870f96a7d25ca340379e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Lipt=C3=A1k?= Date: Thu, 22 Jun 2017 18:17:21 -0400 Subject: [PATCH] Correct test_google.py --- pandas_datareader/google/quotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas_datareader/google/quotes.py b/pandas_datareader/google/quotes.py index bedf902c..416cdc23 100644 --- a/pandas_datareader/google/quotes.py +++ b/pandas_datareader/google/quotes.py @@ -28,7 +28,7 @@ def _read_lines(self, out): buffer = out.read() m = re.search('// ', buffer) result = json.loads(buffer[m.start() + len('// '):]) - return pd.DataFrame([[float(x['cp']), float(x['l']), + return pd.DataFrame([[float(x['cp']), float(x['l'].replace(',', '')), np.datetime64(parse(x['lt']).isoformat())] for x in result], columns=['change_pct', 'last', 'time'],