Skip to content

Commit 77a74d1

Browse files
committed
moved and renamed apple options file to data_analysis_miniproject
1 parent 9774139 commit 77a74d1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

nasdaq_calendars.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def __init__(self):
1818
self.attributes = 'scraper(self, year, month, day), calendar(self, dictionary = output from scraper)'
1919

2020
def scraper(self, url, hdrs):
21-
page = requests.get(url, params = hdrs)
21+
s = requests.Session()
22+
page = s.get(url, params = hdrs)
2223
page = page.content
2324
dictionary = json.loads(page)
2425
return dictionary
@@ -55,6 +56,4 @@ def quote(self, symbol):
5556
except:
5657
pass
5758
october.calendars
58-
df = pandas.concat(october.calendars)
59-
df['Shares'] = 100
60-
def['Price']
59+
df = pandas.concat(october.calendars)

0 commit comments

Comments
 (0)