-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.py
35 lines (23 loc) · 880 Bytes
/
contact.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import streamlit as st
import pandas as pd
st.title("Contact Details Data Analysis")
@st.cache
def load_data():
data = pd.read_csv("contact_details (1).csv")
return data
df = load_data()
st.write("Shape of the dataset:", df.shape)
st.write("Dataset head:", df.head())
if st.checkbox("Show summary statistics"):
st.write(df.describe())
if st.checkbox("Show missing values count"):
st.write(df.isnull().sum())
if st.checkbox("Show value count by contact designation"):
contact_value_counts = df['contact_designation'].value_counts()
st.bar_chart(contact_value_counts)
if st.checkbox("Show value count by fax number"):
fax_value_counts = df['fax_number'].value_counts()
st.bar_chart(fax_value_counts)
if st.checkbox("Show value count by email-id"):
unique_email_id = df["email_id"].value_counts()
st.bar_chart(unique_email_id)