我有一个像下面这样的数据框。共有4个群集组,每个组都有几个场所选项,例如Cafe或Coffee Shop。我想制作一个主要按“群集标签”及其“公共场地”栏分组的条形图,它应显示“计数”数字。
我没有设法在python中进行绘图。你能帮我吗?
Cluster Labels 1st Most Common Venue Counts
0 Café 3
0 Clothing Store 2
0 Seafood Restaurant 1
1 Hotel 1
2 Café 14
2 Coffee Shop 1
2 Turkish Restaurant 1
3 Café 9
3 Restaurant 1
3 Steakhouse 2
3 Turkish Restaurant 3
4 Breakfast Spot 1