|
|
|
@ -5,14 +5,13 @@ import seaborn as sns
|
|
|
|
|
|
|
|
|
|
st.title("Project Miner")
|
|
|
|
|
|
|
|
|
|
# File uploader
|
|
|
|
|
### Exploration
|
|
|
|
|
uploaded_file = st.file_uploader("Upload your CSV file", type=["csv"])
|
|
|
|
|
|
|
|
|
|
if uploaded_file:
|
|
|
|
|
data = pd.read_csv(uploaded_file)
|
|
|
|
|
st.success("File loaded successfully!")
|
|
|
|
|
|
|
|
|
|
# Data Preview
|
|
|
|
|
st.header("Data Preview")
|
|
|
|
|
|
|
|
|
|
st.subheader("First 5 Rows")
|
|
|
|
@ -21,7 +20,6 @@ if uploaded_file:
|
|
|
|
|
st.subheader("Last 5 Rows")
|
|
|
|
|
st.write(data.tail())
|
|
|
|
|
|
|
|
|
|
# Data Summary
|
|
|
|
|
st.header("Data Summary")
|
|
|
|
|
|
|
|
|
|
st.subheader("Basic Information")
|
|
|
|
@ -36,10 +34,10 @@ if uploaded_file:
|
|
|
|
|
st.subheader("Statistical Summary")
|
|
|
|
|
st.write(data.describe())
|
|
|
|
|
|
|
|
|
|
# Data Visualization
|
|
|
|
|
### Visualization
|
|
|
|
|
|
|
|
|
|
st.header("Data Visualization")
|
|
|
|
|
|
|
|
|
|
# Histogram
|
|
|
|
|
st.subheader("Histogram")
|
|
|
|
|
column_to_plot = st.selectbox("Select Column for Histogram", data.columns)
|
|
|
|
|
if column_to_plot:
|
|
|
|
@ -50,7 +48,6 @@ if uploaded_file:
|
|
|
|
|
ax.set_ylabel('Frequency')
|
|
|
|
|
st.pyplot(fig)
|
|
|
|
|
|
|
|
|
|
# Boxplot
|
|
|
|
|
st.subheader("Boxplot")
|
|
|
|
|
column_to_plot_box = st.selectbox("Select Column for Boxplot", data.columns, key="boxplot")
|
|
|
|
|
if column_to_plot_box:
|
|
|
|
|