A comprehensive Streamlit application for analyzing computer prices dataset from Kaggle.
- Project description with formatting
- Two illustrative images with sources
- Sample data table preview
- Quick statistics dashboard
- Interactive charts for all dataset columns
- Categorical data analysis with pie and bar charts
- Numeric distributions with histograms and box plots
- Correlation heatmap and scatter plots
- Uses tabs and columns for layout
- Release dynamics by year
- Flexible date range filtering (start/end can be empty)
- Brand-wise release trends
- Code display for visualization logic
- 3 ready-made questions with buttons
- Brand selection with radio buttons
- Price range slider
- Text input for model search
- Number input for year filtering
- Extraction of manufacturers from dataset
- Global geographic map showing headquarters
- Interactive visualization with hover data
- Code display for manufacturer extraction
- Random Forest model trained on dataset
- Interactive form with dropdowns and sliders
- Real-time price predictions
- Model saved to file for reuse
- Text input for questions
- Chat history display
- Clear history button
- Rule-based responses about dataset statistics
pip install -r requirements.txtDownload the dataset from Kaggle: https://www.kaggle.com/datasets/paperxd/all-computer-prices
Place the CSV file in the project directory and name it all_computer_prices.csv
streamlit run app.pyThe application will open in your default browser at http://localhost:8501
test_app/
├── app.py # Main Streamlit application
├── requirements.txt # Python dependencies
├── README.md # This file
├── all_computer_prices.csv # Dataset (download separately)
└── price_model.pkl # Trained model (generated automatically)
- Navigation: Use the sidebar to switch between different pages
- Data Loading: The dataset is loaded automatically when you start the app
- Visualizations: All charts are interactive - hover, zoom, and pan
- Predictions: The model trains automatically on first use and saves to file
- Chat: Ask questions about the dataset in natural language
- Framework: Streamlit
- Visualization: Plotly Express
- ML Model: Random Forest Regressor (scikit-learn)
- Data Processing: Pandas, NumPy
- ✅ Sidebar navigation with 7 pages
- ✅ About page with text, images, and data preview
- ✅ Comprehensive visualizations using columns and tabs
- ✅ Time series with flexible date filtering
- ✅ Q&A form with 3 buttons + radio + slider + 2 inputs
- ✅ Manufacturer map with code display
- ✅ Price prediction with trained model and interactive form
- ✅ AI chat with history and clear functionality
Total Points: 2.0 / 2.0 + bonus features
- The AI chat uses rule-based responses (no external API required)
- The price prediction model trains automatically on first run
- All visualizations adapt to the actual dataset columns
- The application is fully responsive and works with different screen sizes