Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,16 @@ import streamlit as st
|
|
2 |
import altair as alt
|
3 |
import pandas as pd
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Load Dataset
|
6 |
@st.cache_data
|
7 |
def load_data():
|
@@ -63,14 +73,7 @@ chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
|
|
63 |
tab1, tab2 = st.tabs(["Streamlit Theme", "Altair Native Theme"])
|
64 |
|
65 |
with tab1:
|
66 |
-
|
67 |
-
This scatter plot visualizes the distribution of building size based on their acquisition year.
|
68 |
-
Design choices:
|
69 |
-
- X-axis displays the years acquired sorted in descending order.
|
70 |
-
- Y-axis displays the square footage.
|
71 |
-
This scatter plot visualizes the relationship between year-acquired and Square Footage of buildings,
|
72 |
-
with Total Floors encoded as the size of the points.
|
73 |
-
""")
|
74 |
st.altair_chart(chart, theme="streamlit", use_container_width=True)
|
75 |
|
76 |
with tab2:
|
|
|
2 |
import altair as alt
|
3 |
import pandas as pd
|
4 |
|
5 |
+
st.title("Building Inventory Insights")
|
6 |
+
st.caption("""
|
7 |
+
This scatter plot visualizes the distribution of building size based on their acquisition year.
|
8 |
+
Design choices:
|
9 |
+
- X-axis displays the years acquired sorted in descending order.
|
10 |
+
- Y-axis displays the square footage.
|
11 |
+
This scatter plot visualizes the relationship between year-acquired and Square Footage of buildings,
|
12 |
+
with Total Floors encoded as the size of the points.
|
13 |
+
""")
|
14 |
+
|
15 |
# Load Dataset
|
16 |
@st.cache_data
|
17 |
def load_data():
|
|
|
73 |
tab1, tab2 = st.tabs(["Streamlit Theme", "Altair Native Theme"])
|
74 |
|
75 |
with tab1:
|
76 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
st.altair_chart(chart, theme="streamlit", use_container_width=True)
|
78 |
|
79 |
with tab2:
|