Prasanna1622 commited on
Commit
e01307c
·
verified ·
1 Parent(s): b0cedd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -86,7 +86,8 @@ def generate_heatmap_for_site(site_name, df):
86
  "Red": [255, 0, 0]
87
  }
88
 
89
- site_df["Fault_Level"] = site_df["Fault_Count__c"].apply(get_fault_level)
 
90
  site_df["color"] = site_df["Fault_Level"].map(color_map)
91
 
92
  # Create a Pydeck map for the site
@@ -129,7 +130,7 @@ def generate_heatmap_for_site(site_name, df):
129
  layers=[layer],
130
  tooltip=tooltip
131
  )
132
-
133
  # Divide into four columns (Hyderabad, Kurnool, Ballari, Gadwal)
134
  col1, col2 = st.columns(2)
135
  with col1:
 
86
  "Red": [255, 0, 0]
87
  }
88
 
89
+ print(df.columns) # Add this to see the available columns
90
+ site_df["Fault_Level"] = site_df["Faults_Count"].apply(get_fault_level)
91
  site_df["color"] = site_df["Fault_Level"].map(color_map)
92
 
93
  # Create a Pydeck map for the site
 
130
  layers=[layer],
131
  tooltip=tooltip
132
  )
133
+ print(df.columns)
134
  # Divide into four columns (Hyderabad, Kurnool, Ballari, Gadwal)
135
  col1, col2 = st.columns(2)
136
  with col1: