NatualHisak commited on
Commit
37d65f0
1 Parent(s): 2265e1d

DiFA Deployment Final

Browse files
Files changed (4) hide show
  1. high.py +62 -57
  2. low.py +49 -69
  3. low_1.py +0 -123
  4. med.py +64 -51
high.py CHANGED
@@ -1,12 +1,7 @@
1
  import streamlit as st
2
- from streamlit_option_menu import option_menu
3
  import yfinance as yf
4
  import pandas as pd
5
- import matplotlib.pyplot as plt
6
- import matplotlib.dates as mdates
7
- import seaborn as sns
8
- import datetime
9
- from PIL import Image
10
 
11
  dfl1 = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/Dataset_clean/High%20Clean/Manulife%20Dana%20Saham%20Kelas%20A%20Clean.csv')
12
  dfl2 = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/Dataset_clean/High%20Clean/Batavia%20Dana%20Saham%20Clean.csv')
@@ -34,83 +29,93 @@ def run():
34
  return low_symbol
35
  low_symbol = user_input_low()
36
  if low_symbol == 'Manulife dana saham kelas A' :
37
- fig = plt.figure(figsize=(15,5))
38
- line = sns.lineplot(data=dfl1, y="value", x="date")
39
- locator = mdates.DayLocator(interval=10)
40
- line.xaxis.set_major_locator(locator)
41
- st.pyplot(fig)
 
42
  st.markdown('---')
43
 
44
  if low_symbol == 'Batavia Dana Saham' :
45
- fig = plt.figure(figsize=(15,5))
46
- line = sns.lineplot(data=dfl2, y="value", x="date")
47
- locator = mdates.DayLocator(interval=10)
48
- line.xaxis.set_major_locator(locator)
49
- st.pyplot(fig)
 
50
  st.markdown('---')
51
 
52
  elif low_symbol == 'Sucorinvest equity fund' :
53
- fig = plt.figure(figsize=(15,5))
54
- line = sns.lineplot(data=dfl3, y="value", x="date")
55
- locator = mdates.DayLocator(interval=10)
56
- line.xaxis.set_major_locator(locator)
57
- st.pyplot(fig)
58
- st.markdown('---')
 
59
 
60
  elif low_symbol == 'Manulife Saham Andalan' :
61
- fig = plt.figure(figsize=(15,5))
62
- line = sns.lineplot(data=dfl4, y="value", x="date")
63
- locator = mdates.DayLocator(interval=10)
64
- line.xaxis.set_major_locator(locator)
65
- st.pyplot(fig)
 
66
  st.markdown('---')
67
 
68
  elif low_symbol == 'BNI-AM Indeks IDX30' :
69
- fig = plt.figure(figsize=(15,5))
70
- line = sns.lineplot(data=dfl5, y="value", x="date")
71
- locator = mdates.DayLocator(interval=10)
72
- line.xaxis.set_major_locator(locator)
73
- st.pyplot(fig)
 
74
  st.markdown('---')
75
 
76
  elif low_symbol == 'BNI-AM Dana Saham Inspiring Equity Fund' :
77
- fig = plt.figure(figsize=(15,5))
78
- line = sns.lineplot(data=dfl6, y="value", x="date")
79
- locator = mdates.DayLocator(interval=10)
80
- line.xaxis.set_major_locator(locator)
81
- st.pyplot(fig)
 
82
  st.markdown('---')
83
 
84
  elif low_symbol == 'Simas Saham Unggulan' :
85
- fig = plt.figure(figsize=(15,5))
86
- line = sns.lineplot(data=dfl7, y="value", x="date")
87
- locator = mdates.DayLocator(interval=10)
88
- line.xaxis.set_major_locator(locator)
89
- st.pyplot(fig)
 
90
  st.markdown('---')
91
 
92
  elif low_symbol == 'Schroder 90 Plus Equity Fund' :
93
- fig = plt.figure(figsize=(15,5))
94
- line = sns.lineplot(data=dfl8, y="value", x="date")
95
- locator = mdates.DayLocator(interval=10)
96
- line.xaxis.set_major_locator(locator)
97
- st.pyplot(fig)
 
98
  st.markdown('---')
99
 
100
  elif low_symbol == 'Sucorinvest Sharia Equity Fund' :
101
- fig = plt.figure(figsize=(15,5))
102
- line = sns.lineplot(data=dfl9, y="value", x="date")
103
- locator = mdates.DayLocator(interval=10)
104
- line.xaxis.set_major_locator(locator)
105
- st.pyplot(fig)
 
106
  st.markdown('---')
107
 
108
  elif low_symbol == 'Danareksa Mawar Konsumer 10 Kelas A' :
109
- fig = plt.figure(figsize=(15,5))
110
- line = sns.lineplot(data=dfl10, y="value", x="date")
111
- locator = mdates.DayLocator(interval=10)
112
- line.xaxis.set_major_locator(locator)
113
- st.pyplot(fig)
 
114
  st.markdown('---')
115
  if __name__ == '__main__':
116
  run()
 
1
  import streamlit as st
2
+ import plotly.express as px
3
  import yfinance as yf
4
  import pandas as pd
 
 
 
 
 
5
 
6
  dfl1 = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/Dataset_clean/High%20Clean/Manulife%20Dana%20Saham%20Kelas%20A%20Clean.csv')
7
  dfl2 = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/Dataset_clean/High%20Clean/Batavia%20Dana%20Saham%20Clean.csv')
 
29
  return low_symbol
30
  low_symbol = user_input_low()
31
  if low_symbol == 'Manulife dana saham kelas A' :
32
+ dfl1['value'] = dfl1['value'].astype(float)
33
+ dfl1['date']=pd.to_datetime(dfl1['date'])
34
+
35
+ fig = px.line(dfl1, x="date", y="value")
36
+ fig.update_traces(textposition="bottom right")
37
+ st.plotly_chart(fig)
38
  st.markdown('---')
39
 
40
  if low_symbol == 'Batavia Dana Saham' :
41
+ dfl2['value'] = dfl2['value'].astype(float)
42
+ dfl2['date']=pd.to_datetime(dfl2['date'])
43
+
44
+ fig = px.line(dfl2, x="date", y="value")
45
+ fig.update_traces(textposition="bottom right")
46
+ st.plotly_chart(fig)
47
  st.markdown('---')
48
 
49
  elif low_symbol == 'Sucorinvest equity fund' :
50
+ dfl3['value'] = dfl3['value'].astype(float)
51
+ dfl3['date']=pd.to_datetime(dfl3['date'])
52
+
53
+ fig = px.line(dfl3, x="date", y="value")
54
+ fig.update_traces(textposition="bottom right")
55
+ st.plotly_chart(fig)
56
+ st.markdown('---')
57
 
58
  elif low_symbol == 'Manulife Saham Andalan' :
59
+ dfl4['value'] = dfl4['value'].astype(float)
60
+ dfl4['date']=pd.to_datetime(dfl4['date'])
61
+
62
+ fig = px.line(dfl4, x="date", y="value")
63
+ fig.update_traces(textposition="bottom right")
64
+ st.plotly_chart(fig)
65
  st.markdown('---')
66
 
67
  elif low_symbol == 'BNI-AM Indeks IDX30' :
68
+ dfl5['value'] = dfl5['value'].astype(float)
69
+ dfl5['date']=pd.to_datetime(dfl5['date'])
70
+
71
+ fig = px.line(dfl5, x="date", y="value")
72
+ fig.update_traces(textposition="bottom right")
73
+ st.plotly_chart(fig)
74
  st.markdown('---')
75
 
76
  elif low_symbol == 'BNI-AM Dana Saham Inspiring Equity Fund' :
77
+ dfl6['value'] = dfl6['value'].astype(float)
78
+ dfl6['date']=pd.to_datetime(dfl6['date'])
79
+
80
+ fig = px.line(dfl6, x="date", y="value")
81
+ fig.update_traces(textposition="bottom right")
82
+ st.plotly_chart(fig)
83
  st.markdown('---')
84
 
85
  elif low_symbol == 'Simas Saham Unggulan' :
86
+ dfl7['value'] = dfl7['value'].astype(float)
87
+ dfl7['date']=pd.to_datetime(dfl7['date'])
88
+
89
+ fig = px.line(dfl7, x="date", y="value")
90
+ fig.update_traces(textposition="bottom right")
91
+ st.plotly_chart(fig)
92
  st.markdown('---')
93
 
94
  elif low_symbol == 'Schroder 90 Plus Equity Fund' :
95
+ dfl8['value'] = dfl8['value'].astype(float)
96
+ dfl8['date']=pd.to_datetime(dfl8['date'])
97
+
98
+ fig = px.line(dfl8, x="date", y="value")
99
+ fig.update_traces(textposition="bottom right")
100
+ st.plotly_chart(fig)
101
  st.markdown('---')
102
 
103
  elif low_symbol == 'Sucorinvest Sharia Equity Fund' :
104
+ dfl9['value'] = dfl9['value'].astype(float)
105
+ dfl9['date']=pd.to_datetime(dfl9['date'])
106
+
107
+ fig = px.line(dfl9, x="date", y="value")
108
+ fig.update_traces(textposition="bottom right")
109
+ st.plotly_chart(fig)
110
  st.markdown('---')
111
 
112
  elif low_symbol == 'Danareksa Mawar Konsumer 10 Kelas A' :
113
+ dfl10['value'] = dfl10['value'].astype(float)
114
+ dfl10['date']=pd.to_datetime(dfl10['date'])
115
+
116
+ fig = px.line(dfl10, x="date", y="value")
117
+ fig.update_traces(textposition="bottom right")
118
+ st.plotly_chart(fig)
119
  st.markdown('---')
120
  if __name__ == '__main__':
121
  run()
low.py CHANGED
@@ -1,13 +1,7 @@
1
  import streamlit as st
2
- from streamlit_option_menu import option_menu
3
  import plotly.express as px
4
  import yfinance as yf
5
  import pandas as pd
6
- import matplotlib.pyplot as plt
7
- import matplotlib.dates as mdates
8
- import seaborn as sns
9
- import datetime
10
- from PIL import Image
11
 
12
  dfl1 = pd.read_csv(r'https://raw.githubusercontent.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/main/Dataset_clean/Low%20Clean/Bahana%20Dana%20Likuid%20Clean.csv')
13
  dfl2 = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/Dataset_clean/Low%20Clean/Batavia%20Dana%20Kas%20Maxima%20Clean.csv')
@@ -39,80 +33,72 @@ def run():
39
  fig = px.line(dfl2, x="Date", y="Present")
40
  fig.update_traces(textposition="bottom right")
41
  st.plotly_chart(fig)
 
42
 
43
- """*fig = plt.figure(figsize=(15,5))
44
- line = sns.lineplot(data=dfl2, y="Present", x="Date")
45
- locator = mdates.DayLocator(interval=10)
46
- line.xaxis.set_major_locator(locator)
47
- st.pyplot(fig)
48
- st.markdown('---')"""
49
 
50
- if low_symbol == 'Sucorinvest Money Market Fund' :
 
 
51
 
52
  fig = px.line(dfl7, x="Date", y="Present")
53
  fig.update_traces(textposition="bottom right")
54
  st.plotly_chart(fig)
55
- """
56
- fig = plt.figure(figsize=(15,5))
57
- line = sns.lineplot(data=dfl7, y="Present", x="Date")
58
- locator = mdates.DayLocator(interval=10)
59
- plt.ylim(reversed(plt.ylim()))
60
- line.xaxis.set_major_locator(locator)
61
- line.yaxis.set_major_locator(locator)
62
- st.pyplot(fig)
63
  st.markdown('---')
64
- """
65
 
66
  elif low_symbol == 'Bahana Dana Likuid' :
67
- fig = plt.figure(figsize=(15,5))
68
- line = sns.lineplot(data=dfl1, y="Present", x="Date")
69
- locator = mdates.DayLocator(interval=10)
70
- plt.ylim(reversed(plt.ylim()))
71
- line.xaxis.set_major_locator(locator)
72
- line.yaxis.set_major_locator(locator)
73
- st.pyplot(fig)
74
- st.markdown('---')
75
 
76
  elif low_symbol == 'Manulife Dana Kas II Kelas A' :
77
- fig = plt.figure(figsize=(15,5))
78
- line = sns.lineplot(data=dfl6, y="value", x="date")
79
- locator = mdates.DayLocator(interval=10)
80
- line.xaxis.set_major_locator(locator)
81
- st.pyplot(fig)
 
82
  st.markdown('---')
83
 
84
  elif low_symbol == 'TRIM Kas 2' :
85
- fig = plt.figure(figsize=(15,5))
86
- line = sns.lineplot(data=dfl10, y="Present", x="Date")
87
- locator = mdates.DayLocator(interval=10)
88
- plt.ylim(reversed(plt.ylim()))
89
- line.xaxis.set_major_locator(locator)
90
- line.yaxis.set_major_locator(locator)
91
- st.pyplot(fig)
92
  st.markdown('---')
93
 
94
  elif low_symbol == 'Danareksa Seruni Pasar Uang III' :
95
- fig = plt.figure(figsize=(15,5))
96
- line = sns.lineplot(data=dfl5, y="Present", x="Date")
97
- locator = mdates.DayLocator(interval=10)
98
- line.xaxis.set_major_locator(locator)
99
- st.pyplot(fig)
 
 
100
  st.markdown('---')
101
 
102
  elif low_symbol == 'Sucorinvest Sharia Money Market Fund' :
103
- fig = plt.figure(figsize=(15,5))
104
- line = sns.lineplot(data=dfl9, y="Present", x="Date")
105
- locator = mdates.DayLocator(interval=10)
106
- line.xaxis.set_major_locator(locator)
107
- st.pyplot(fig)
 
108
  st.markdown('---')
109
 
110
  elif low_symbol == 'Danamas Rupiah Plus' :
111
- fig = plt.figure(figsize=(15,5))
112
- line = sns.lineplot(data=dfl4, y="value", x="date")
113
- locator = mdates.DayLocator(interval=10)
114
- line.xaxis.set_major_locator(locator)
115
- st.pyplot(fig)
 
116
  st.markdown('---')
117
 
118
  elif low_symbol == 'Danareksa Seruni Pasar Uang II' :
@@ -120,21 +106,15 @@ def run():
120
  fig = px.line(dfl5, x="Date", y="Present")
121
  fig.update_traces(textposition="bottom right")
122
  st.plotly_chart(fig)
123
- """
124
- fig = plt.figure(figsize=(15,5))
125
- line = sns.lineplot(data=dfl5, y="Present", x="Date")
126
- locator = mdates.DayLocator(interval=10)
127
- line.xaxis.set_major_locator(locator)
128
- st.pyplot(fig)
129
  st.markdown('---')
130
- """
131
 
132
  elif low_symbol == 'BNI-AM Dana Likuid' :
133
- fig = plt.figure(figsize=(15,5))
134
- line = sns.lineplot(data=dfl3, y="Present", x="Date")
135
- locator = mdates.DayLocator(interval=10)
136
- line.xaxis.set_major_locator(locator)
137
- st.pyplot(fig)
 
138
  st.markdown('---')
139
  if __name__ == '__main__':
140
  run()
 
1
  import streamlit as st
 
2
  import plotly.express as px
3
  import yfinance as yf
4
  import pandas as pd
 
 
 
 
 
5
 
6
  dfl1 = pd.read_csv(r'https://raw.githubusercontent.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/main/Dataset_clean/Low%20Clean/Bahana%20Dana%20Likuid%20Clean.csv')
7
  dfl2 = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/Dataset_clean/Low%20Clean/Batavia%20Dana%20Kas%20Maxima%20Clean.csv')
 
33
  fig = px.line(dfl2, x="Date", y="Present")
34
  fig.update_traces(textposition="bottom right")
35
  st.plotly_chart(fig)
36
+ st.markdown('---')
37
 
 
 
 
 
 
 
38
 
39
+ elif low_symbol == 'Sucorinvest Money Market Fund' :
40
+ dfl7['Present'] = dfl7['Present'].astype(float)
41
+ dfl7['Date']=pd.to_datetime(dfl7['Date'])
42
 
43
  fig = px.line(dfl7, x="Date", y="Present")
44
  fig.update_traces(textposition="bottom right")
45
  st.plotly_chart(fig)
 
 
 
 
 
 
 
 
46
  st.markdown('---')
 
47
 
48
  elif low_symbol == 'Bahana Dana Likuid' :
49
+
50
+ dfl1['Present'] = dfl1['Present'].astype(float)
51
+ dfl1['Date']=pd.to_datetime(dfl1['Date'])
52
+
53
+ fig = px.line(dfl1, x="Date", y="Present")
54
+ fig.update_traces(textposition="bottom right")
55
+ st.plotly_chart(fig)
56
+ st.markdown('---')
57
 
58
  elif low_symbol == 'Manulife Dana Kas II Kelas A' :
59
+ dfl6['value'] = dfl6['value'].astype(float)
60
+ dfl6['date']=pd.to_datetime(dfl6['date'])
61
+
62
+ fig = px.line(dfl6, x="date", y="value")
63
+ fig.update_traces(textposition="bottom right")
64
+ st.plotly_chart(fig)
65
  st.markdown('---')
66
 
67
  elif low_symbol == 'TRIM Kas 2' :
68
+ dfl10['Present'] = dfl10['Present'].astype(float)
69
+ dfl10['Date']=pd.to_datetime(dfl10['Date'])
70
+
71
+ fig = px.line(dfl10, x="Date", y="Present")
72
+ fig.update_traces(textposition="bottom right")
73
+ st.plotly_chart(fig)
 
74
  st.markdown('---')
75
 
76
  elif low_symbol == 'Danareksa Seruni Pasar Uang III' :
77
+
78
+ dfl5['Present'] = dfl5['Present'].astype(float)
79
+ dfl5['Date']=pd.to_datetime(dfl5['Date'])
80
+
81
+ fig = px.line(dfl5, x="Date", y="Present")
82
+ fig.update_traces(textposition="bottom right")
83
+ st.plotly_chart(fig)
84
  st.markdown('---')
85
 
86
  elif low_symbol == 'Sucorinvest Sharia Money Market Fund' :
87
+ dfl9['Present'] = dfl9['Present'].astype(float)
88
+ dfl9['Date']=pd.to_datetime(dfl9['Date'])
89
+
90
+ fig = px.line(dfl9, x="Date", y="Present")
91
+ fig.update_traces(textposition="bottom right")
92
+ st.plotly_chart(fig)
93
  st.markdown('---')
94
 
95
  elif low_symbol == 'Danamas Rupiah Plus' :
96
+ dfl4['value'] = dfl4['value'].astype(float)
97
+ dfl4['date']=pd.to_datetime(dfl4['date'])
98
+
99
+ fig = px.line(dfl4, x="date", y="value")
100
+ fig.update_traces(textposition="bottom right")
101
+ st.plotly_chart(fig)
102
  st.markdown('---')
103
 
104
  elif low_symbol == 'Danareksa Seruni Pasar Uang II' :
 
106
  fig = px.line(dfl5, x="Date", y="Present")
107
  fig.update_traces(textposition="bottom right")
108
  st.plotly_chart(fig)
 
 
 
 
 
 
109
  st.markdown('---')
 
110
 
111
  elif low_symbol == 'BNI-AM Dana Likuid' :
112
+ dfl3['Present'] = dfl3['Present'].astype(float)
113
+ dfl3['Date']=pd.to_datetime(dfl3['Date'])
114
+
115
+ fig = px.line(dfl3, x="Date", y="Present")
116
+ fig.update_traces(textposition="bottom right")
117
+ st.plotly_chart(fig)
118
  st.markdown('---')
119
  if __name__ == '__main__':
120
  run()
low_1.py DELETED
@@ -1,123 +0,0 @@
1
- import streamlit as st
2
- from streamlit_option_menu import option_menu
3
- import yfinance as yf
4
- import pandas as pd
5
- import matplotlib.pyplot as plt
6
- import matplotlib.dates as mdates
7
- import seaborn as sns
8
- import datetime
9
- from PIL import Image
10
-
11
- dfb1 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\ABF Indonesia Bond Index Fund Clean.csv')
12
- dfb2 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Batavia Dana Obligasi Ultima Clean.csv')
13
- dfb3 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Danamas_Stabil Clean.csv')
14
- dfb4 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Eastspring IDR Fixed Income Fund Kelas A Clean.csv')
15
- dfb5 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Eastspring Syariah Fixed Income Amanah Kelas A Clean.csv')
16
- dfb6 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Manulife Obligasi Negara Indonesia II Kelas A Clean.csv')
17
- dfb7 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Manulife Obligasi Unggulan Kelas A.csv')
18
- dfb8 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Schroder Dana Mantap Plus II Clean.csv')
19
- dfb9 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Sucorinvest Sharia Sukuk Funds Clean.csv')
20
- dfb10 = pd.read_csv(r'G:\Final project\deployment2\p2---final-project-ftds-016-rmt-group-002\Dataset_clean\Med Clean\Sucorinvest Stable Fund Clean.csv')
21
- def run():
22
- def user_input_low():
23
- low_symbol = st.sidebar.selectbox('Mutual Funds', ('ABF Indonesia Bond Index Fund',
24
- 'Batavia Dana Obligasi Ultima',
25
- 'Danamas_Stabil',
26
- 'Eastspring IDR Fixed Income Fund Kelas A',
27
- 'Eastspring Syariah Fixed Income Amanah Kelas A',
28
- 'Manulife Obligasi Negara Indonesia II Kelas A',
29
- 'Manulife Obligasi Unggulan Kelas A',
30
- 'Schroder Dana Mantap Plus II',
31
- 'Sucorinvest Sharia Sukuk Funds',
32
- 'Sucorinvest Stable Fund'))
33
- tickerData = yf.Ticker(low_symbol+'.JK')
34
- return low_symbol
35
- low_symbol = user_input_low()
36
- if low_symbol == 'ABF Indonesia Bond Index Fund' :
37
- fig = plt.figure(figsize=(15,5))
38
- line = sns.lineplot(data=dfb1, y="Present", x="Date")
39
- locator = mdates.DayLocator(interval=10)
40
- line.xaxis.set_major_locator(locator)
41
- st.pyplot(fig)
42
- st.markdown('---')
43
-
44
- if low_symbol == 'Batavia Dana Obligasi Ultima' :
45
- fig = plt.figure(figsize=(15,5))
46
- line = sns.lineplot(data=dfb2, y="Present", x="Date")
47
- locator = mdates.DayLocator(interval=10)
48
- plt.ylim(reversed(plt.ylim()))
49
- line.xaxis.set_major_locator(locator)
50
- line.yaxis.set_major_locator(locator)
51
- st.pyplot(fig)
52
- st.markdown('---')
53
-
54
- elif low_symbol == 'Danamas_Stabil' :
55
- fig = plt.figure(figsize=(15,5))
56
- line = sns.lineplot(data=dfb3, y="Present", x="Date")
57
- locator = mdates.DayLocator(interval=10)
58
- plt.ylim(reversed(plt.ylim()))
59
- line.xaxis.set_major_locator(locator)
60
- line.yaxis.set_major_locator(locator)
61
- st.pyplot(fig)
62
- st.markdown('---')
63
-
64
- elif low_symbol == 'Eastspring IDR Fixed Income Fund Kelas A' :
65
- fig = plt.figure(figsize=(15,5))
66
- line = sns.lineplot(data=dfb4, y="value", x="date")
67
- locator = mdates.DayLocator(interval=10)
68
- line.xaxis.set_major_locator(locator)
69
- st.pyplot(fig)
70
- st.markdown('---')
71
-
72
- elif low_symbol == 'Eastspring Syariah Fixed Income Amanah Kelas A' :
73
- fig = plt.figure(figsize=(15,5))
74
- line = sns.lineplot(data=dfb5, y="Present", x="Date")
75
- locator = mdates.DayLocator(interval=10)
76
- plt.ylim(reversed(plt.ylim()))
77
- line.xaxis.set_major_locator(locator)
78
- line.yaxis.set_major_locator(locator)
79
- st.pyplot(fig)
80
- st.markdown('---')
81
-
82
- elif low_symbol == 'Manulife Obligasi Negara Indonesia II Kelas A' :
83
- fig = plt.figure(figsize=(15,5))
84
- line = sns.lineplot(data=dfb6, y="Present", x="Date")
85
- locator = mdates.DayLocator(interval=10)
86
- line.xaxis.set_major_locator(locator)
87
- st.pyplot(fig)
88
- st.markdown('---')
89
-
90
- elif low_symbol == 'Manulife Obligasi Unggulan Kelas A' :
91
- fig = plt.figure(figsize=(15,5))
92
- line = sns.lineplot(data=dfb7, y="Present", x="Date")
93
- locator = mdates.DayLocator(interval=10)
94
- line.xaxis.set_major_locator(locator)
95
- st.pyplot(fig)
96
- st.markdown('---')
97
-
98
- elif low_symbol == 'Schroder Dana Mantap Plus II' :
99
- fig = plt.figure(figsize=(15,5))
100
- line = sns.lineplot(data=dfb8, y="value", x="date")
101
- locator = mdates.DayLocator(interval=10)
102
- line.xaxis.set_major_locator(locator)
103
- st.pyplot(fig)
104
- st.markdown('---')
105
-
106
- elif low_symbol == 'Sucorinvest Sharia Sukuk Funds' :
107
- fig = plt.figure(figsize=(15,5))
108
- line = sns.lineplot(data=dfb9, y="Present", x="Date")
109
- locator = mdates.DayLocator(interval=10)
110
- line.xaxis.set_major_locator(locator)
111
- st.pyplot(fig)
112
- st.markdown('---')
113
-
114
- elif low_symbol == 'Sucorinvest Stable Fund' :
115
- fig = plt.figure(figsize=(15,5))
116
- line = sns.lineplot(data=dfb10, y="Present", x="Date")
117
- locator = mdates.DayLocator(interval=10)
118
- line.xaxis.set_major_locator(locator)
119
- st.pyplot(fig)
120
- st.markdown('---')
121
- if __name__ == '__main__':
122
- run()
123
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
med.py CHANGED
@@ -1,9 +1,10 @@
1
  import streamlit as st
2
- from streamlit_option_menu import option_menu
3
  import yfinance as yf
4
  import pandas as pd
5
  import matplotlib.pyplot as plt
6
  import matplotlib.dates as mdates
 
7
  import seaborn as sns
8
  import datetime
9
  from PIL import Image
@@ -34,82 +35,94 @@ def run():
34
  return low_symbol
35
  low_symbol = user_input_low()
36
  if low_symbol == 'ABF Indonesia Bond Index Fund' :
37
- fig = plt.figure(figsize=(15,5))
38
- line = sns.lineplot(data=dfb1, y="Present", x="date")
39
- locator = mdates.DayLocator(interval=10)
40
- line.xaxis.set_major_locator(locator)
41
- st.pyplot(fig)
 
42
  st.markdown('---')
43
 
44
  if low_symbol == 'Batavia Dana Obligasi Ultima' :
45
- fig = plt.figure(figsize=(15,5))
46
- line = sns.lineplot(data=dfb2, y="value", x="date")
47
- locator = mdates.DayLocator(interval=10)
48
- line.xaxis.set_major_locator(locator)
49
- st.pyplot(fig)
 
 
50
  st.markdown('---')
51
 
52
  elif low_symbol == 'Danamas_Stabil' :
53
- fig = plt.figure(figsize=(15,5))
54
- line = sns.lineplot(data=dfb3, y="value", x="date")
55
- locator = mdates.DayLocator(interval=10)
56
- line.xaxis.set_major_locator(locator)
57
- st.pyplot(fig)
58
- st.markdown('---')
 
59
 
60
  elif low_symbol == 'Eastspring IDR Fixed Income Fund Kelas A' :
61
- fig = plt.figure(figsize=(15,5))
62
- line = sns.lineplot(data=dfb4, y="value", x="date")
63
- locator = mdates.DayLocator(interval=10)
64
- line.xaxis.set_major_locator(locator)
65
- st.pyplot(fig)
 
66
  st.markdown('---')
67
 
68
  elif low_symbol == 'Eastspring Syariah Fixed Income Amanah Kelas A' :
69
- fig = plt.figure(figsize=(15,5))
70
- line = sns.lineplot(data=dfb5, y="Present", x="Date")
71
- locator = mdates.DayLocator(interval=10)
72
- st.pyplot(fig)
 
 
73
  st.markdown('---')
74
 
75
  elif low_symbol == 'Manulife Obligasi Negara Indonesia II Kelas A' :
76
- fig = plt.figure(figsize=(15,5))
77
- line = sns.lineplot(data=dfb6, y="value", x="date")
78
- locator = mdates.DayLocator(interval=10)
79
- line.xaxis.set_major_locator(locator)
80
- st.pyplot(fig)
 
81
  st.markdown('---')
82
 
83
  elif low_symbol == 'Manulife Obligasi Unggulan Kelas A' :
84
- fig = plt.figure(figsize=(15,5))
85
- line = sns.lineplot(data=dfb7, y="value", x="date")
86
- locator = mdates.DayLocator(interval=10)
87
- line.xaxis.set_major_locator(locator)
88
- st.pyplot(fig)
 
89
  st.markdown('---')
90
 
91
  elif low_symbol == 'Schroder Dana Mantap Plus II' :
92
- fig = plt.figure(figsize=(15,5))
93
- line = sns.lineplot(data=dfb8, y="Present", x="date")
94
- locator = mdates.DayLocator(interval=10)
95
- line.xaxis.set_major_locator(locator)
96
- st.pyplot(fig)
 
97
  st.markdown('---')
98
 
99
  elif low_symbol == 'Sucorinvest Sharia Sukuk Funds' :
100
- fig = plt.figure(figsize=(15,5))
101
- line = sns.lineplot(data=dfb9, y="value", x="date")
102
- locator = mdates.DayLocator(interval=10)
103
- line.xaxis.set_major_locator(locator)
104
- st.pyplot(fig)
 
105
  st.markdown('---')
106
 
107
  elif low_symbol == 'Sucorinvest Stable Fund' :
108
- fig = plt.figure(figsize=(15,5))
109
- line = sns.lineplot(data=dfb10, y="value", x="date")
110
- locator = mdates.DayLocator(interval=10)
111
- line.xaxis.set_major_locator(locator)
112
- st.pyplot(fig)
 
113
  st.markdown('---')
114
  if __name__ == '__main__':
115
  run()
 
1
  import streamlit as st
2
+ import plotly.express as px
3
  import yfinance as yf
4
  import pandas as pd
5
  import matplotlib.pyplot as plt
6
  import matplotlib.dates as mdates
7
+
8
  import seaborn as sns
9
  import datetime
10
  from PIL import Image
 
35
  return low_symbol
36
  low_symbol = user_input_low()
37
  if low_symbol == 'ABF Indonesia Bond Index Fund' :
38
+ dfb1['Present'] = dfb1['Present'].astype(float)
39
+ dfb1['date']=pd.to_datetime(dfb1['date'])
40
+
41
+ fig = px.line(dfb1, x="date", y="Present")
42
+ fig.update_traces(textposition="bottom right")
43
+ st.plotly_chart(fig)
44
  st.markdown('---')
45
 
46
  if low_symbol == 'Batavia Dana Obligasi Ultima' :
47
+
48
+ dfb2['value'] = dfb2['value'].astype(float)
49
+ dfb2['date']=pd.to_datetime(dfb2['date'])
50
+
51
+ fig = px.line(dfb2, x="date", y="value")
52
+ fig.update_traces(textposition="bottom right")
53
+ st.plotly_chart(fig)
54
  st.markdown('---')
55
 
56
  elif low_symbol == 'Danamas_Stabil' :
57
+ dfb3['value'] = dfb3['value'].astype(float)
58
+ dfb3['date']=pd.to_datetime(dfb3['date'])
59
+
60
+ fig = px.line(dfb3, x="date", y="value")
61
+ fig.update_traces(textposition="bottom right")
62
+ st.plotly_chart(fig)
63
+ st.markdown('---')
64
 
65
  elif low_symbol == 'Eastspring IDR Fixed Income Fund Kelas A' :
66
+ dfb4['value'] = dfb4['value'].astype(float)
67
+ dfb4['date']=pd.to_datetime(dfb4['date'])
68
+
69
+ fig = px.line(dfb4, x="date", y="value")
70
+ fig.update_traces(textposition="bottom right")
71
+ st.plotly_chart(fig)
72
  st.markdown('---')
73
 
74
  elif low_symbol == 'Eastspring Syariah Fixed Income Amanah Kelas A' :
75
+ dfb5['Present'] = dfb5['Present'].astype(float)
76
+ dfb5['Date']=pd.to_datetime(dfb5['Date'])
77
+
78
+ fig = px.line(dfb5, x="Date", y="Present")
79
+ fig.update_traces(textposition="bottom right")
80
+ st.plotly_chart(fig)
81
  st.markdown('---')
82
 
83
  elif low_symbol == 'Manulife Obligasi Negara Indonesia II Kelas A' :
84
+ dfb6['value'] = dfb6['value'].astype(float)
85
+ dfb6['date']=pd.to_datetime(dfb6['date'])
86
+
87
+ fig = px.line(dfb6, x="date", y="value")
88
+ fig.update_traces(textposition="bottom right")
89
+ st.plotly_chart(fig)
90
  st.markdown('---')
91
 
92
  elif low_symbol == 'Manulife Obligasi Unggulan Kelas A' :
93
+ dfb7['value'] = dfb7['value'].astype(float)
94
+ dfb7['date']=pd.to_datetime(dfb7['date'])
95
+
96
+ fig = px.line(dfb7, x="date", y="value")
97
+ fig.update_traces(textposition="bottom right")
98
+ st.plotly_chart(fig)
99
  st.markdown('---')
100
 
101
  elif low_symbol == 'Schroder Dana Mantap Plus II' :
102
+ dfb8['Present'] = dfb8['Present'].astype(float)
103
+ dfb8['date']=pd.to_datetime(dfb8['date'])
104
+
105
+ fig = px.line(dfb8, x="date", y="Present")
106
+ fig.update_traces(textposition="bottom right")
107
+ st.plotly_chart(fig)
108
  st.markdown('---')
109
 
110
  elif low_symbol == 'Sucorinvest Sharia Sukuk Funds' :
111
+ dfb9['value'] = dfb9['value'].astype(float)
112
+ dfb9['date']=pd.to_datetime(dfb9['date'])
113
+
114
+ fig = px.line(dfb9, x="date", y="value")
115
+ fig.update_traces(textposition="bottom right")
116
+ st.plotly_chart(fig)
117
  st.markdown('---')
118
 
119
  elif low_symbol == 'Sucorinvest Stable Fund' :
120
+ dfb10['value'] = dfb10['value'].astype(float)
121
+ dfb10['date']=pd.to_datetime(dfb9['date'])
122
+
123
+ fig = px.line(dfb10, x="date", y="value")
124
+ fig.update_traces(textposition="bottom right")
125
+ st.plotly_chart(fig)
126
  st.markdown('---')
127
  if __name__ == '__main__':
128
  run()