Skip to content

Commit d738d69

Browse files
committed
completed qz3 and update to hw3 assignment
1 parent 2ad2e7d commit d738d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stock-data-with-yfinance/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
print(apple_info['longName'], ':',
2323
apple_info['sector'], ':', apple_info['industry'])
2424

25-
history_data = stock.history(period="5y")
25+
history_data = stock.history(period="1y")
2626

2727
fig = px.line(history_data, x=history_data.index, y=[
28-
'Open', 'High', 'Low', 'Close'], title='Apple Inc. Stock Prices', labels={
28+
'Open', 'High', 'Low', 'Close'], title='Apple Inc. Stock Price Graph - Jesus Torres', labels={
2929
'value': 'Stock Price (USD)', 'variable': 'Stock Price Type'})
3030

3131
fig.show(renderer='browser')

0 commit comments

Comments
 (0)