Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
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.
|
| 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)
|