import os import streamlit as st import pandas as pd import requests API_URL = f"{os.environ['SERVER_URL']}/api/mutual-fund-details/" response = requests.get(API_URL) if response.status_code != 200: st.error("Error fetching data from the server.") st.stop() df = pd.DataFrame(response.json()["data"]) # Streamlit app st.set_page_config(layout="wide") st.markdown( "

Mutual Fund Data Analysis Tool

", unsafe_allow_html=True, ) # Display the DataFrame without scrolling and use the full page width st.dataframe(df, width=10000, height=1000)