Raushan-123 commited on
Commit
0aa6751
·
verified ·
1 Parent(s): 923cd4e

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +51 -0
  2. requirements.txt +6 -0
app.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import pandas as pd
3
+ import streamlit as st
4
+ # from pandas_profiling import ProfileReport
5
+ from ydata_profiling import ProfileReport
6
+ from streamlit_pandas_profiling import st_profile_report
7
+ st.markdown('''
8
+ # **The EDA App**
9
+
10
+ Unleash the Power of Data Exploration with our EDA App: Dive Deep, Discover Insights, and Empower Your Analysis!
11
+
12
+ **Credit:** App built by [Sanjana Singamsetty](https://github.com/sanjana-singamsetty)
13
+
14
+ ---
15
+ ''')
16
+
17
+ # Upload CSV data
18
+ with st.sidebar.header('1. Upload your CSV data'):
19
+ uploaded_file = st.sidebar.file_uploader("Upload your input CSV file", type=["csv"])
20
+ st.sidebar.markdown("""
21
+ [Example CSV input file](https://raw.githubusercontent.com/sanjana-singamsetty/sample/master/delaney_solubility_with_descriptors.csv)
22
+ """)
23
+ if uploaded_file is not None:
24
+ @st.cache_data
25
+ def load_csv():
26
+ csv = pd.read_csv(uploaded_file)
27
+ return csv
28
+ df = load_csv()
29
+ pr = ProfileReport(df, explorative=True)
30
+ st.header('**Input DataFrame**')
31
+ st.dataframe(df)
32
+ st.header('**Pandas Profiling Report**')
33
+ st_profile_report(pr)
34
+ else:
35
+ st.info('Please Upload CSV file to Begin.')
36
+ if st.button('If you have nodataset Press me!>-<'):
37
+ # Example data
38
+ @st.cache_data
39
+ def load_data():
40
+ a = pd.DataFrame(
41
+ np.random.rand(100, 5),
42
+ columns=['a', 'b', 'c', 'd', 'e']
43
+ )
44
+ return a
45
+ df = load_data()
46
+ pr = ProfileReport(df, explorative=True)
47
+ st.header('**Input DataFrame**')
48
+ st.write(df)
49
+ st.write('---')
50
+ st.header('**Pandas Profiling Report**')
51
+ st_profile_report(pr)
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ streamlit
2
+ pandas
3
+ numpy
4
+ ydata-profiling
5
+ streamlit-pandas-profiling
6
+ Jinja2