JanhaviZarapkar commited on
Commit
45a1862
·
verified ·
1 Parent(s): 6dff6e1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -2,6 +2,19 @@ import pandas as pd
2
  import streamlit as st
3
  import altair as alt
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  st.title("Building Inventory Analysis")
6
 
7
  # Load and clean dataset
@@ -23,10 +36,10 @@ columns_to_drop = [
23
  ]
24
  df = df.drop(columns=columns_to_drop)
25
 
26
- # Check and handle missing values
27
- # missing_values = df.isnull().sum()
28
- # st.subheader("Missing Values Before Cleaning")
29
- # st.write(missing_values)
30
 
31
  # Drop rows where 'Year Acquired' or 'Year Constructed' is NaN
32
  df = df.dropna(subset=['Year Acquired', 'Year Constructed'])
 
2
  import streamlit as st
3
  import altair as alt
4
 
5
+ st.markdown(
6
+ """
7
+ <style>
8
+ /* Adjust the body overflow for smooth fullscreen experience */
9
+ body {
10
+ overflow-y: hidden; /* Hide vertical scrollbars */
11
+ overflow-x: hidden; /* Hide horizontal scrollbars */
12
+ }
13
+ </style>
14
+ """,
15
+ unsafe_allow_html=True,
16
+ )
17
+
18
  st.title("Building Inventory Analysis")
19
 
20
  # Load and clean dataset
 
36
  ]
37
  df = df.drop(columns=columns_to_drop)
38
 
39
+ #Check and handle missing values
40
+ missing_values = df.isnull().sum()
41
+ st.subheader("Missing Values Before Cleaning")
42
+ st.write(missing_values)
43
 
44
  # Drop rows where 'Year Acquired' or 'Year Constructed' is NaN
45
  df = df.dropna(subset=['Year Acquired', 'Year Constructed'])