This Jupyter Notebook processes and visualizes Virtual Machine (VM) allocation and request data from Excel files. It performs data cleaning, merging, and generates pie charts to provide insights into VM usage.
- Python 3.x
- Jupyter Notebook
- Required Libraries:
pandas
numpy
matplotlib
pygsheets
gspread
oauth2client
- RequestFileV2.xlsx: Contains VM request data.
- VM allocations.xlsx: Contains VM allocation data.
- Loads necessary Python modules for data processing and visualization.
- Reads VM request and allocation data from the respective Excel sheets:
- "Form responses 1" (Requests)
- "Production" (Allocations)
- Removes extra spaces in VM names.
- Eliminates rows where VM name is missing.
- Limits
VM allocations.xlsx
data to 108 rows. - Converts numeric columns to object types.
- Fills missing or empty values with "Unknown".
- Joins the two datasets using "VM name" as the key.
- Keeps only records present in both datasets.
- Opens and reads the
RequestFileV2.xlsx
file. - Handles errors if the file is missing.
- Generates pie charts to visualize VM allocation and requests.
- Ensure the required Excel files are available in the specified directory.
- Run the notebook step by step to process and visualize the data.
- Modify the file paths if needed for your system.
- Ensure dependencies are installed before running the notebook.
- The dataset is preprocessed to handle missing or incorrect values.
- Adjust visualization parameters as needed for better insights.