'How to graph a grouped bar graph from these 3 dictionaries
I am trying to create a grouped bar graph.The bar graph needs to have a bar for Incoming and a bar for outgoing calls.
I am trying to get the dictionary to look similar to this so I can graph. Complaints': [51, 0], 'Sales Support': [75, 123], 'Product Support': [82, 228]
This is the code that I have:
purpose_counts = purpose_group["Incoming or Outgoing"].value_counts()
complaints = purpose_counts["Complaint"].to_dict()
print(complaints)
sales_support = purpose_counts["Sales Support"].to_dict()
print(sales_support)
product_support = purpose_counts["Product Support"].to_dict()
print(product_support)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
