This program is designed to perform exploratory data analysis and advanced analysis on the "Heart Disease UCI" dataset. The user can choose to clean the data, explore the data, or perform advanced analysis on the data.
To run the program, follow these steps:
Make sure you have Python 3.x installed on your computer. Download the "heart_statlog_cleveland_hungary_final.csv" dataset file and save it in the same directory as the program file. Open the terminal or command prompt and navigate to the directory where the program file is saved. Type "python3 HeartDisease.py" to run the program.
The program has three main sections:
Choose option 1 to clean the dataset The program will display the first 5 rows of the original and cleaned data.
Choose option 2 to explore the data You will be presented with several options to analyze different aspects of the dataset, such as age distribution, gender distribution, blood pressure analysis, etc. Choose an option to analyze the corresponding aspect of the data. To go back to the main menu, choose option 12.
Choose option 3 to perform advanced analysis on the dataset You will be presented with several options to analyze the dataset, such as correlation matrix, most important features, clustering analysis, etc. Choose an option to analyze the corresponding aspect of the data. To go back to the main menu, choose option 4.
Exiting the program:
Choose option Q or q to exit the program.
Advanced analysis uses numerical data therefore don't perform step 1 in the main menu(Clean the data) as it performs feature conversions on some columns by changing them to strings. Otherwise you'll encounter ValueError.