Python Script for PowerPoint Creation
Python Script for PowerPoint Creation
The script generates a PowerPoint presentation including various visualizations: a horizontal bar chart for workforce distribution by department, a pie chart for state workforce distribution, a doughnut chart for skill level distribution, a combined salary distribution histogram with a payment timeliness pie chart, a bar chart for canteen food ratings, and either a word cloud or bar chart for top worker concerns .
The placeholder 'Company/Plant Name' on Slide 1, set to 'Maruti India Corp', can be modified by altering the script itself. This is a placeholder and can be replaced with the actual company or plant name as needed .
The Department-wise Concerns slide aims to provide a text-based overview of issues specific to each department. This detailed analysis helps to identify areas where particular department-related improvements or attention may be needed .
For top concerns from workers, where data might be insufficient for a word cloud, a bar chart is provided as a fallback option. This ensures that even if the preferred visualization type cannot be generated due to data constraints, insights can still be communicated effectively .
To accommodate additional data or changes in presentation requirements, modifications can be made to the script, including adjusting data paths, altering placeholder text, and customizing visualization elements to align with new data insights or changing audience needs .
The final slides in the PowerPoint presentation serve to summarize key takeaways and action points, and provide a closure with a 'Thank You / Q&A' slide. These elements encourage a concise review of critical findings and enable further discussions or inquiries from the audience .
Before executing the script to generate the PowerPoint presentation, you need to ensure Python is installed on your computer and subsequently install the necessary libraries with the following command: pip install pandas matplotlib python-pptx wordcloud . Next, save the provided Python code as a .py file in the same directory as your CSV files. Run the script using the command: python create_presentation.py from the terminal .
The script is designed to manage cases where specific data for charts might be missing by inserting a message on the respective slide, thus acknowledging and indicating the data absence explicitly .
The required data files include Pivot Table and Data Analysis.xlsx, and several CSV files including Form Responses and Pivot Table data. These files provide raw data that the script processes to generate insights and visualizations in the PowerPoint presentation, such as analyzing workforce distribution and skill levels .
The executive summary slide includes key statistics, however, these statistics should be refined based on actual data insights after reviewing the generated presentation. This indicates that the initial content provided may serve as an example or starting point for further customization and contextual relevance .