<How to plot a grouped bar plot with data from mul...
# community-feeds
r
How to plot a grouped bar plot with data from multiple dataframes how to plot multiple categories with different data lengths on the same bar chart in python? Here is my code: import pandas as pd import matplotlib.pyplot as plt Type_X = [200000, 150000] Type_Y = [168000, 120000] Comb = [192000] Cat = ['With Time Constraints', 'With Production Constraints'] Cat2 = ['Optimised Combination of Devices'] df = pd.DataFrame({'Type X': Type_X, 'Type Y': Type_Y,}, index=Cat) df2 = pd.DataFrame({'Comb' : Comb}, index=Cat2) print(df)...