import streamlit as st from dataset_import import load_data st.title("AnalyzeYT Dataset Analysis") # Load dataset data = load_data() if data is not None: st.write("Loaded Data Preview:") st.write(data.head()) # Add some basic analysis and visualization options st.write("Data Description:") st.write(data.describe()) st.write("Data Visualization:") chart_type = st.selectbox("Select Chart Type", ['Line Chart', 'Bar Chart', 'Histogram']) if chart_type == 'Line Chart': st.line_chart(data) elif chart_type == 'Bar Chart': st.bar_chart(data) elif chart_type == 'Histogram': selected_column = st.selectbox("Select Column for Histogram", data.columns) st.write(data[selected_column].plot(kind='hist'))