Spaces:
Sleeping
Sleeping
Update app.py
Browse files82 unmodified lines8384858687888990919293949582 unmodified linesst.header(f"Analysis for {'All Time' if selected_year == 'All Time' else selected_year}")# Display metricscol1, col2, col3 = st.columns(3)with col1:st.metric("Total Complaints", len(filtered_data))with col2:avg_time = filtered_data['Processing Time'].mean()st.metric("Average Processing Time", f"{avg_time:.1f} days" if pd.notna(avg_time) else "N/A")with col3:most_common = filtered_data['Type of Complaint'].value_counts().index[0] if not filtered_data.empty else "N/A"st.metric("Most Common Type", most_common)82 unmodified lines8384858687888990919282 unmodified linesst.header(f"Analysis for {'All Time' if selected_year == 'All Time' else selected_year}")# Display metricscol1, col2 = st.columns(2)with col1:st.metric("Total Complaints", len(filtered_data))with col2:most_common = filtered_data['Type of Complaint'].value_counts().index[0] if not filtered_data.empty else "N/A"st.metric("Most Common Type", most_common)
app.py+1-4