Untitled
unknown
plain_text
a year ago
7.1 kB
5
Indexable
Never
import streamlit as st import pandas as pd import matplotlib.pyplot as plt # Load your CSV data # df = pd.read_csv("Book1.csv") # Set a background image (you can change the URL) page_bg_img = ''' <style> [data-testid="stAppViewContainer"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAPDw8PDw8PDQ0NDxANDQ0NDxINDQ0NFRIXFhURFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMsQygtLisBCgoKDg0OFxAQFS0dHx0tLS0tLS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tKy0tLS0rKy0tLS0tLS0tLS0tLf/AABEIALcBEwMBEQACEQEDEQH/xAAbAAEAAwEBAQEAAAAAAAAAAAAAAQIDBAUGB//EADMQAAIBAwIEBAQFBAMAAAAAAAABAgMEESFBEjFRYQUiMrFCcYHhE1KRwdEzgqGiYrLw/8QAGgEBAAMBAQEAAAAAAAAAAAAAAAECAwQFBv/EACsRAQACAgEEAQIFBQEAAAAAAAABAgMRBBIhMUEiUYETYbHh8AUyQnHBFP/aAAwDAQACEQMRAD8A/I0e+41kBZBKyC0LIheEohpVYhtUIbVCHRUKy6KuK6uM+WPLd9RWPbh5PK646K+HPGOTSsblxRDVaHbjpFYJt6hWUimTIork5pna6CBIAlIBIAlIAJGtCjKclGKy/wDCXVkTOmmPHbJbpq9+0to01hat+qW8mU3t6lMNcddQ6CWV0MtDmshl3PZVlmFlWSylVloUlVkqqtko2oyUoA8tI5E7SgLInaYWRC0LohpEpQaQkhrVJWW9UMhvVxXFxnRct31GnLn5E2+NfDBLJaImZ05tNFoduOkVgm3qFZSKZMiqmTmmdrBAkJAAAkSEgEkjShRlOXDFa7vZLqxNtNcOG+W3TSHvWlvGmsLV/FLeTM97e9j49cNNR59y6USyuFnLYZaHLZVloc9kMsxsqyzKVWSzlRkqqslXajJTvaAl5iORZKAsmSlKC0OuNt5ddJbL+TppxbWrMtpiKR38sTlmJjtKa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AAbAAAAAAAAbAAAADYAAAAAAADYAb2daVOamtnqnymt4vsaY6zM7aY7zS0W/kvvLHxSFxBSh5XFJSp7w7fI9jjRWYe9l/qNc9N17fl9E1JG17vEz5Nuacjmtd5mSduWrIxmzktG3LORnMoirFshfSjKrIYFWQlUJeMcb0QAAAAAAAAAAAAAAAAAAAAAAAAAWhHJpjp1d0tEdlaqWs3ta8qclODxJfo10fVG1dx3hWLzWdw+ns7+NaOVpJeqG6fXui1rrWttapIxmzmtDmqSM9s+hzzYRMaZMM0MgVCVWVSqEvGOR6IAAAAAAAAAAAAAAAAAAAAAAAAWhE0pTqS0R2VqpaV0jWIUlJbekJp15QkpReJLf8Ab5HNe6Yh7tpeqrHOMSWkl0fYrFtk1TJkqTDKRLCzNhkggVZCVWQsqEv/2Q=="); # background-position: center center; background-repeat: no-repeat; # background-attachment: fixed; background-size: cover; } [data-testid="stHeader"] { background: lightblue; } </style> ''' st.markdown(page_bg_img, unsafe_allow_html=True) st.markdown('''<img src="https://celebaltech.com/assets/img/celebal.webp" width="400" height="100">''', unsafe_allow_html=True) ###################--------------------------------- # # Add a title and subtitle # st.title("Simple Streamlit UI") # st.subheader("Explore your data") # # Display the data frame # st.write("Data Frame", df) # # Add some checkboxes to customize the view # st.sidebar.header("Customize View") # if st.sidebar.checkbox("Show Dataframe Summary"): # st.write("Dataframe Summary", df.describe()) # if st.sidebar.checkbox("Show Plot"): # # Create a simple bar plot # st.write("Bar Plot") # plt.bar(df["Category"], df["Value"]) # plt.xlabel("Category") # plt.ylabel("Value") # st.pyplot() # Add any additional elements or visualizations here