This project presents a comprehensive data visualization and analysis of tourism data across China. Using Python (Pandas + Pyecharts), we visualize various dimensions such as sales volume, scenic spot distribution, pricing, and holiday travel trends. The final output includes interactive charts and maps that aid tourism planning, decision-making, and public understanding of the tourism market structure.
- π Top 20 Most Popular Scenic Spots β Horizontal bar chart based on ticket sales
- ποΈ City-Level 4A/5A Attractions Distribution β Bar chart for city tourism resource density
- πΊοΈ National Map of High-Level Attractions β Heat map showing spatial distribution
- πΈ Rose Charts β Ticket price ranges & number of 4A/5A attractions per province
- π¬ Word Cloud β Scenic spot introduction highlights
- π Scatter Plots β Relationships between price levels, sales, and attraction quantity
- π Holiday Travel Distribution β Geographical distribution of tourist flow
-
Format: Excel (
.xlsm) -
Fields: Name, City, Ticket Price, Grade (4A/5A), Sales, Description, Address
-
Preprocessing:
- Removed duplicates by scenic spot name
- Filled missing grades and descriptions with mode/defaults
- Divided ticket price into defined intervals using
pd.cut()
-
Language: Python 3.x
-
Libraries:
pandas: Data handling and preprocessingpyecharts: Interactive charts and mapsmatplotlib&seaborn: Auxiliary visual checks
-
Output Format: Interactive HTML reports
-
Preprocessing:
- Duplicate removal
- Null value filling
- Type normalization
-
Clustering:
- Price range segmentation
-
Aggregation:
- Scenic spot count per city
- Grade-level distribution per region
Tourism-Visualization/
βββ data/
β βββ ζ
ζΈΈζ―ηΉ.xlsm
βββ figures/
β βββ top20_sales_bar.html
β βββ city_grade_bar.html
β βββ ...
βββ src/
β βββ main_visualization.py
βββ README.md
βββ requirements.txt
-
Clone the repository:
git clone https://github.com/yourusername/Tourism-Visualization.git cd Tourism-Visualization -
Install dependencies:
pip install -r requirements.txt
-
Run the visualization script:
python src/main_visualization.py
-
Open the generated
.htmlfiles in thefigures/directory with any web browser.
- Name: Zhong Zhuohua
- Major: Computer Science and Technology 22(3)
- College: School of International Education
- ID: 3122010011
- Instructor: Prof. Lin Zhiyi
May 1, 2025
