Spaces:
Runtime error
Runtime error
Commit
·
57a7ac5
1
Parent(s):
439a5de
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
#pass="Leswhdc2023$!"
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
import pandas as pd
|
|
@@ -9,38 +8,6 @@ from pandas_profiling import ProfileReport
|
|
| 9 |
|
| 10 |
st.title("File Upload and Profiling")
|
| 11 |
|
| 12 |
-
# uploaded_file = st.file_uploader("Upload a CSV file", type="csv")
|
| 13 |
-
|
| 14 |
-
# RunProfiler=False
|
| 15 |
-
# if uploaded_file is not None:
|
| 16 |
-
# if RunProfiler:
|
| 17 |
-
|
| 18 |
-
# # Load the data using pandas
|
| 19 |
-
# df = pd.read_csv(uploaded_file)
|
| 20 |
-
|
| 21 |
-
# # Generate the pandas profiling report
|
| 22 |
-
# profile = ProfileReport(df, explorative=True)
|
| 23 |
-
|
| 24 |
-
# # Display the pandas profiling report using streamlit
|
| 25 |
-
# st.header("Data Profiling Report")
|
| 26 |
-
# st.write(profile.to_html(), unsafe_allow_html=True)
|
| 27 |
-
|
| 28 |
-
# # Display word statistics for each categorical string column
|
| 29 |
-
# cat_cols = df.select_dtypes(include='object').columns
|
| 30 |
-
# st.header("Word Statistics for Categorical Columns")
|
| 31 |
-
# for col in cat_cols:
|
| 32 |
-
# st.subheader(col)
|
| 33 |
-
# word_count = df[col].str.split().apply(len).value_counts().sort_index()
|
| 34 |
-
# st.bar_chart(word_count)
|
| 35 |
-
|
| 36 |
-
# # Grouped count by each feature
|
| 37 |
-
# num_cols = df.select_dtypes(include=['float', 'int']).columns
|
| 38 |
-
# st.header("Grouped Count by Each Feature")
|
| 39 |
-
# for col in num_cols:
|
| 40 |
-
# st.subheader(col)
|
| 41 |
-
# count_by_feature = df.groupby(col).size().reset_index(name='count')
|
| 42 |
-
# st.bar_chart(count_by_feature)
|
| 43 |
-
|
| 44 |
# Upload a CSV dataset
|
| 45 |
uploaded_file = st.file_uploader("Upload your dataset", type=["csv"])
|
| 46 |
if uploaded_file is not None:
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
import pandas as pd
|
|
|
|
| 8 |
|
| 9 |
st.title("File Upload and Profiling")
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# Upload a CSV dataset
|
| 12 |
uploaded_file = st.file_uploader("Upload your dataset", type=["csv"])
|
| 13 |
if uploaded_file is not None:
|