Spaces:
Sleeping
Sleeping
Peter Yang
commited on
Commit
Β·
683b3bc
1
Parent(s):
8015fc4
sepreate table data cleaning form visualization
Browse files
pages/{15_π_Table_Data_Clean.py β 15_π_Table_Data_Cleaning.py}
RENAMED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
-
import seaborn as sns
|
| 4 |
-
import matplotlib.pyplot as plt
|
| 5 |
import io
|
| 6 |
import base64
|
| 7 |
|
|
@@ -10,7 +8,10 @@ st.set_page_config(layout="wide")
|
|
| 10 |
|
| 11 |
# Function for the CSV Visualization App
|
| 12 |
def app():
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
st.markdown("Upload one or multiple CSV files to preprocess and clean your files quickly and stress free.")
|
| 16 |
|
|
@@ -18,7 +19,7 @@ def app():
|
|
| 18 |
|
| 19 |
uploaded_files = st.file_uploader("Choose CSV files", type="csv", accept_multiple_files=True)
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
if uploaded_files:
|
| 24 |
for file in uploaded_files:
|
|
@@ -73,30 +74,6 @@ def app():
|
|
| 73 |
else:
|
| 74 |
st.warning("Please upload CSV file(s).")
|
| 75 |
st.stop()
|
| 76 |
-
|
| 77 |
-
st.markdown("")
|
| 78 |
-
st.markdown("---")
|
| 79 |
-
st.markdown("")
|
| 80 |
-
st.markdown("<p style='text-align: center'><a href='https://github.com/Kaludii'>Github</a> | <a href='https://huggingface.co/Kaludi'>HuggingFace</a></p>", unsafe_allow_html=True)
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
# uploaded_file = st.file_uploader("Upload your input CSV file", type=["csv"])
|
| 84 |
-
# Pandas DataFrame is created from the CSV file
|
| 85 |
-
# if uploaded_file is not None:
|
| 86 |
-
# df = pd.read_csv(uploaded_file)
|
| 87 |
-
# st.write(df) # Display the dataframe on the app
|
| 88 |
-
|
| 89 |
-
# # Create a selectbox for user to choose the column to visualize
|
| 90 |
-
# columns = df.columns.tolist()
|
| 91 |
-
# selected_column = st.selectbox('Select a column to visualize', columns)
|
| 92 |
-
|
| 93 |
-
# # Using seaborn to create a count plot
|
| 94 |
-
# fig, ax = plt.subplots()
|
| 95 |
-
# sns.countplot(data=df, x=selected_column, ax=ax)
|
| 96 |
-
# plt.xticks(rotation=45) # Rotate X-axis labels to 45 degrees
|
| 97 |
-
# # Show the plot
|
| 98 |
-
# st.pyplot(fig)
|
| 99 |
-
|
| 100 |
app()
|
| 101 |
|
| 102 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
|
|
|
|
|
|
| 3 |
import io
|
| 4 |
import base64
|
| 5 |
|
|
|
|
| 8 |
|
| 9 |
# Function for the CSV Visualization App
|
| 10 |
def app():
|
| 11 |
+
|
| 12 |
+
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
| 13 |
+
|
| 14 |
+
st.title('CSV Data Cleaning')
|
| 15 |
|
| 16 |
st.markdown("Upload one or multiple CSV files to preprocess and clean your files quickly and stress free.")
|
| 17 |
|
|
|
|
| 19 |
|
| 20 |
uploaded_files = st.file_uploader("Choose CSV files", type="csv", accept_multiple_files=True)
|
| 21 |
|
| 22 |
+
dataframes = []
|
| 23 |
|
| 24 |
if uploaded_files:
|
| 25 |
for file in uploaded_files:
|
|
|
|
| 74 |
else:
|
| 75 |
st.warning("Please upload CSV file(s).")
|
| 76 |
st.stop()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
app()
|
| 78 |
|
| 79 |
|