This project is a robust Python application designed for data manipulation and visualization. It provides tools for modifying CSV files and generating insightful histograms from the dataset. It's particularly tailored for analyzing and visualizing the World Championship Data Set Visualization (WCDSV), focusing on the distribution of medals among participants.
- Data Manipulation: Easily insert and delete rows and columns within the CSV dataset.
- Column Management: Rename existing columns as needed.
- Data Visualization: Create histograms to showcase the distribution of medals.
- Interactive CLI: Navigate project features through a user-friendly command-line interface.
Before you begin, make sure you have Python 3.6 or higher installed, as well as pip for managing Python packages.
Clone the repository and install the required dependencies:
To get the application up and running on your local machine, follow these steps:
-
Clone the project repository:
git clone https://github.com/Srijan-Baniyal/PythonProject
-
Navigate to the project directory:
cd your-project-repository
-
Install the required packages:
pip install -r requirements.txt
-
Run the main script:
python main.py
Follow the command-line interface prompts to manipulate the dataset or to visualize the data.
- Line Chart: Countries vs Total Medals
- Bar Chart: Countries vs Total number of Gold Medals
- Bar Chart: Countries vs Total number of Silver Medals
- Bar Chart: Countries vs Total number of Bronze Medals
- Histograms: Countries Getting Gold, Silver, and Bronze in each Range.
- Exit to Main Menu
- Print Records: Top countries in terms of total medals won.
- Print Records: Top countries in terms of total gold medals won.
- Print Records: Top countries in terms of total silver medals.
- Print Records: Top countries in terms of total bronze medals won.
- Print Records: Bottom most countries in terms of medals won.
- Print Information: General information about the data frame used for analysis.
- Describe Structure: Describe the structure of the data frame used for analysis.
- Print Column Data: Print the data of the column specified by the user.
- Print Maximum Values: Display maximum values for each column in the data frame.
- Display Medals: Display gold, silver, bronze medals won by a specific country.
- Go back to Main Menu
- Insert Row
- Delete Row
- Insert Column
- Delete Column
- Rename Column
- Exit to Main Menu
To run the automated test suite, execute:
python -m unittest discover -s tests