From 9c7542ce12d2cd2b98be24419e9fc7a078ee19e7 Mon Sep 17 00:00:00 2001 From: Dayal Chand Aichara Date: Fri, 8 Nov 2019 12:11:40 +0900 Subject: [PATCH] corrected crypto_history --- PriceIndices/crypto_history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PriceIndices/crypto_history.py b/PriceIndices/crypto_history.py index 2e2b167..af166ca 100644 --- a/PriceIndices/crypto_history.py +++ b/PriceIndices/crypto_history.py @@ -19,10 +19,10 @@ def __init__(self, price_url=__Crypto_Market_Base_URL): def __request(self, url): try: - response = self.session.get(url, timeout = self.request_timeout) + response = self.session.get(url, timeout=self.request_timeout) response.raise_for_status() data = pd.read_html(response.content) - df = pd.DataFrame(data[0]) + df = pd.DataFrame(data[2]) df['Date'] = pd.to_datetime(df['Date']) return df except Exception as e: