Spaces:
Sleeping
Sleeping
File size: 2,182 Bytes
4ea997e |
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
import streamlit as st
from streamlit_option_menu import option_menu
import yfinance as yf
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import seaborn as sns
import datetime
from PIL import Image
import low, med, high
dfp = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/dataset_predict/Pasar%20Uang.csv')
dfb = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/dataset_predict/Bond.csv')
dfs = pd.read_csv(r'https://github.com/H8-Assignments-Bay/p2---final-project-ftds-016-rmt-group-002/raw/main/dataset_predict/Saham.csv')
def run():
st.write("""
# Trend
Show are Corresponding Mutual Fund Trend Based On **NAV (Net Asset Value)**
""")
def user_input():
stock_symbol = st.sidebar.selectbox('Category', ('Money Market', 'Bond', 'stock mutual funds'))
tickerData = yf.Ticker(stock_symbol+'.JK')
return stock_symbol
stock_symbol = user_input()
if stock_symbol == "Money Market" :
low.run()
st.write("""
# Top 10 Money Market Mutual Funds
Show are Top 10 Money Market Mutual Fund Based On **AUM (Asset Under Management)**
""")
fig = plt.figure(figsize=(15,5))
sns.barplot(data=dfp, y="Mutual Funds", x="AUM")
st.pyplot(fig)
elif stock_symbol == "Bond" :
med.run()
st.write("""
# Top 10 Money Market Mutual Funds
Show are Top 10 Money Market Mutual Fund Based On **AUM (Asset Under Management)**
""")
fig = plt.figure(figsize=(15,5))
sns.barplot(data=dfb, y="Mutual Funds", x="AUM")
st.pyplot(fig)
else :
high.run()
st.write("""
# Top 10 Money Market Mutual Funds
Show are Top 10 Money Market Mutual Fund Based On **AUM (Asset Under Management)**
""")
fig = plt.figure(figsize=(15,5))
sns.barplot(data=dfs, y="Mutual Funds", x="AUM")
st.pyplot(fig)
if __name__ == '__main__':
run() |