Spaces:
Sleeping
Sleeping
NatualHisak
commited on
Commit
•
37d65f0
1
Parent(s):
2265e1d
DiFA Deployment Final
Browse files
high.py
CHANGED
@@ -1,12 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
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 |
-
|
38 |
-
|
39 |
-
|
40 |
-
line
|
41 |
-
|
|
|
42 |
st.markdown('---')
|
43 |
|
44 |
if low_symbol == 'Batavia Dana Saham' :
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
line
|
49 |
-
|
|
|
50 |
st.markdown('---')
|
51 |
|
52 |
elif low_symbol == 'Sucorinvest equity fund' :
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
line
|
57 |
-
|
58 |
-
st.
|
|
|
59 |
|
60 |
elif low_symbol == 'Manulife Saham Andalan' :
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
line
|
65 |
-
|
|
|
66 |
st.markdown('---')
|
67 |
|
68 |
elif low_symbol == 'BNI-AM Indeks IDX30' :
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
line
|
73 |
-
|
|
|
74 |
st.markdown('---')
|
75 |
|
76 |
elif low_symbol == 'BNI-AM Dana Saham Inspiring Equity Fund' :
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
line
|
81 |
-
|
|
|
82 |
st.markdown('---')
|
83 |
|
84 |
elif low_symbol == 'Simas Saham Unggulan' :
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
line
|
89 |
-
|
|
|
90 |
st.markdown('---')
|
91 |
|
92 |
elif low_symbol == 'Schroder 90 Plus Equity Fund' :
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
line
|
97 |
-
|
|
|
98 |
st.markdown('---')
|
99 |
|
100 |
elif low_symbol == 'Sucorinvest Sharia Equity Fund' :
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
line
|
105 |
-
|
|
|
106 |
st.markdown('---')
|
107 |
|
108 |
elif low_symbol == 'Danareksa Mawar Konsumer 10 Kelas A' :
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
line
|
113 |
-
|
|
|
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 |
-
|
|
|
|
|
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 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
line
|
72 |
-
|
73 |
-
st.
|
74 |
-
st.markdown('---')
|
75 |
|
76 |
elif low_symbol == 'Manulife Dana Kas II Kelas A' :
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
line
|
81 |
-
|
|
|
82 |
st.markdown('---')
|
83 |
|
84 |
elif low_symbol == 'TRIM Kas 2' :
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
st.pyplot(fig)
|
92 |
st.markdown('---')
|
93 |
|
94 |
elif low_symbol == 'Danareksa Seruni Pasar Uang III' :
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
100 |
st.markdown('---')
|
101 |
|
102 |
elif low_symbol == 'Sucorinvest Sharia Money Market Fund' :
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
line
|
107 |
-
|
|
|
108 |
st.markdown('---')
|
109 |
|
110 |
elif low_symbol == 'Danamas Rupiah Plus' :
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
line
|
115 |
-
|
|
|
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 |
-
|
134 |
-
|
135 |
-
|
136 |
-
line
|
137 |
-
|
|
|
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 |
-
|
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 |
-
|
38 |
-
|
39 |
-
|
40 |
-
line
|
41 |
-
|
|
|
42 |
st.markdown('---')
|
43 |
|
44 |
if low_symbol == 'Batavia Dana Obligasi Ultima' :
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
|
|
50 |
st.markdown('---')
|
51 |
|
52 |
elif low_symbol == 'Danamas_Stabil' :
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
line
|
57 |
-
|
58 |
-
st.
|
|
|
59 |
|
60 |
elif low_symbol == 'Eastspring IDR Fixed Income Fund Kelas A' :
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
line
|
65 |
-
|
|
|
66 |
st.markdown('---')
|
67 |
|
68 |
elif low_symbol == 'Eastspring Syariah Fixed Income Amanah Kelas A' :
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
73 |
st.markdown('---')
|
74 |
|
75 |
elif low_symbol == 'Manulife Obligasi Negara Indonesia II Kelas A' :
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
line
|
80 |
-
|
|
|
81 |
st.markdown('---')
|
82 |
|
83 |
elif low_symbol == 'Manulife Obligasi Unggulan Kelas A' :
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
line
|
88 |
-
|
|
|
89 |
st.markdown('---')
|
90 |
|
91 |
elif low_symbol == 'Schroder Dana Mantap Plus II' :
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
line
|
96 |
-
|
|
|
97 |
st.markdown('---')
|
98 |
|
99 |
elif low_symbol == 'Sucorinvest Sharia Sukuk Funds' :
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
line
|
104 |
-
|
|
|
105 |
st.markdown('---')
|
106 |
|
107 |
elif low_symbol == 'Sucorinvest Stable Fund' :
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
line
|
112 |
-
|
|
|
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()
|