Gowthamvemula commited on
Commit
5983815
·
verified ·
1 Parent(s): d42ec61

Update chrun/pages.py

Browse files
Files changed (1) hide show
  1. chrun/pages.py +27 -0
chrun/pages.py CHANGED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+ # Introduction and About Data
5
+ st.title("Introduction and About Data")
6
+ st.markdown("""
7
+ Welcome to the Hotel Data Analysis App. This app helps analyze hotel datasets, perform feature engineering,
8
+ and create predictive models. Use the sidebar to navigate through the pages.
9
+ **Features**:
10
+ - Download the dataset for exploration.
11
+ - Perform exploratory data analysis (EDA) and feature engineering.
12
+ - Create and evaluate machine learning models.
13
+ - Conclude insights from the analysis.
14
+ **About the Data**:
15
+ The dataset includes hotel-related information such as price, ratings, discounts, cashback, and categories.
16
+ It is designed for understanding relationships between features and building predictive models.
17
+ """)
18
+
19
+ st.markdown("### Download the Dataset")
20
+ sample_data = {
21
+ "Price": [1000, 2000, 1500, 3000],
22
+ "Rating": [4.5, 4.0, 4.2, 3.8],
23
+ "Category": ["Luxury", "Premium", "Budget", "Low Budget"]
24
+ }
25
+ df = pd.DataFrame(sample_data)
26
+ csv = df.to_csv(index=False).encode('utf-8')
27
+ st.download_button("Download Sample Dataset", data=csv, file_name="hotel_data.csv", mime="text/csv")