Skip to content

Commit

Permalink
corrected crypto_history
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayal Chand Aichara committed Nov 8, 2019
1 parent 20bb39b commit 9c7542c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PriceIndices/crypto_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9c7542c

Please sign in to comment.