Untitled
unknown
plain_text
2 years ago
1.3 kB
13
Indexable
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("https://celebaltech.com/assets/img/celebal.webp");
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: fit;
}
[data-testid="stHeader"] {
background: lightblue;
}
</style>
'''
st.markdown(page_bg_img, 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 hereEditor is loading...