Python, Automation, Data Science, Artificial Intelligence, Llm.
Category') plt.xticks(rotation=45) plt.tight_layout() plt.savefig('sales_by_category.png') # Create a pie chart for sales distribution plt.figure(figsize=(8, 8)) plt.pie(data['Sales'], labels=data['Category'], autopct='%1.1f%%') plt.title('Sales Distribution') plt.tight_layout()