- Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathPython_08_Plot_Boxplot.py
More file actions
Latest commit
30 lines (22 loc) · 562 Bytes
/
Copy pathPython_08_Plot_Boxplot.py
File metadata and controls
30 lines (22 loc) · 562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 27 08:09:11 2020
@author: Tin
"""
# Plot Boxplot Chart
importpandasaspd# Dataframe Library
importmatplotlib.pyplotasplt# Plot Chart Library
pd.set_option('max_columns', None) # To show all columns
importyfinanceasyf
yf.pdr_override()
# input
symbol='AAPL'
start='2019-12-01'
end='2020-01-01'
# dataframe
data=yf.download(symbol,start,end)
plt.figure(figsize=(14,8))
plt.boxplot(data['Adj Close'])
plt.xlabel("Month of December")
plt.ylabel("Price")
plt.show()