chicago_data = df.loc["Chicago"].sort_values() bars = plt.barh(chicago_data.index, chicago_data.values, color="#60935D", edgecolor="#000000") for bar in bars: plt.text(bar.get_width() + 2, bar.get_y() + bar.get_height() / 2, f"{int(bar.get_width())}", va="center", ha="left", fontsize=14, color="#000000") plt.title("[DO] Employee Count by Department in Chicago", loc="left", fontdict={"weight": "bold"}, y=1.06) plt.xlabel("Count") plt.ylabel("Department") plt.show()