Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 940228a

Browse files
committed
Cleanup of web/update_plots.py
1 parent 2e494b1 commit 940228a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/update_plots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def scrape_data():
5353
def scrape_yahoo(id_):
5454
BASE_URL = 'https://query1.finance.yahoo.com/v7/finance/download/'
5555
now = int(datetime.now().timestamp())
56-
url = f'{BASE_URL}{id_}?period1=1579651200&period2={now}&interval=1d&events=history'
56+
url = f'{BASE_URL}{id_}?period1=1579651200&period2={now}&interval=1d&' + \
57+
'events=history'
5758
return pd.read_csv(url, usecols=['Date', 'Close']).set_index('Date').Close
5859
covid = pd.read_csv('https://covid.ourworldindata.org/data/owid-covid-data.csv',
5960
usecols=['location', 'date', 'total_cases'])

0 commit comments

Comments
 (0)