RDA9527 commited on
Commit
5014e5f
·
verified ·
1 Parent(s): 8984162

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def app():
47
 
48
  if "Top" in plot["title"]:
49
  data = df.groupby(plot["x"])[plot["y"]].sum().reset_index().sort_values(by=plot["y"], ascending=False).head(plot["top"])
50
- ax.bar(data.index, data.values)
51
 
52
  if "Quantity" in plot["title"]:
53
  sns.countplot(x=plot["x"], hue=plot["hue"], data=df, ax=ax)
 
47
 
48
  if "Top" in plot["title"]:
49
  data = df.groupby(plot["x"])[plot["y"]].sum().reset_index().sort_values(by=plot["y"], ascending=False).head(plot["top"])
50
+ ax.bar(data[plot["x"]].values, data[plot["y"]].values)
51
 
52
  if "Quantity" in plot["title"]:
53
  sns.countplot(x=plot["x"], hue=plot["hue"], data=df, ax=ax)