mihir-s commited on
Commit
9fe3e7c
·
verified ·
1 Parent(s): e58cf71

comment changes

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -113,8 +113,7 @@ This visualization shows the total square footage acquired by each agency over t
113
  - **Sorting by Total Square Footage**: This is done to highlight the largest area holders.
114
  - **Tooltips**: Displaying the agency name, decade, and square footage for each segment, improves readability.
115
 
116
- **Potential Improvements:**
117
-
118
  An interactive filter could allow users to select specific decades or agencies for a closer look. Adding a toggle to switch between absolute and relative square footage contributions per decade could also make the viz better. Homework 6 will be about implementing these interactive elements in the viz.
119
  """)
120
 
@@ -128,7 +127,6 @@ df['Decade'] = (df['Year Acquired'] // 10 * 10).astype(int)
128
  df_sqft_decade = df.groupby(['Agency Name', 'Decade'])['Square Footage'].sum().reset_index()
129
  df_sqft_decade = df_sqft_decade.sort_values(by='Square Footage', ascending=False)
130
 
131
-
132
  #altair code for the viz
133
  chart2 = alt.Chart(df_sqft_decade).mark_bar().encode(
134
  x=alt.X('Square Footage:Q', title='Total Square Footage'),
@@ -139,6 +137,4 @@ chart2 = alt.Chart(df_sqft_decade).mark_bar().encode(
139
  st.altair_chart(chart2, use_container_width=True)
140
  # Footer
141
  st.write("---")
142
- st.write("Created by Mihir Sahasrabudhe for HW5-IS445")
143
-
144
-
 
113
  - **Sorting by Total Square Footage**: This is done to highlight the largest area holders.
114
  - **Tooltips**: Displaying the agency name, decade, and square footage for each segment, improves readability.
115
 
116
+ **Improvements:**
 
117
  An interactive filter could allow users to select specific decades or agencies for a closer look. Adding a toggle to switch between absolute and relative square footage contributions per decade could also make the viz better. Homework 6 will be about implementing these interactive elements in the viz.
118
  """)
119
 
 
127
  df_sqft_decade = df.groupby(['Agency Name', 'Decade'])['Square Footage'].sum().reset_index()
128
  df_sqft_decade = df_sqft_decade.sort_values(by='Square Footage', ascending=False)
129
 
 
130
  #altair code for the viz
131
  chart2 = alt.Chart(df_sqft_decade).mark_bar().encode(
132
  x=alt.X('Square Footage:Q', title='Total Square Footage'),
 
137
  st.altair_chart(chart2, use_container_width=True)
138
  # Footer
139
  st.write("---")
140
+ st.write("Created by Mihir Sahasrabudhe for HW5-IS445")