Update app.py
Browse files
app.py
CHANGED
|
@@ -41,6 +41,7 @@ def app():
|
|
| 41 |
if "Top Selling Pizzas" in plot["title"]:
|
| 42 |
data_aux = df.groupby(plot["x"])[plot["y"]].sum().reset_index().sort_values(by=plot["y"], ascending=False).head(plot["top"])
|
| 43 |
ax.bar(data_aux[plot["x"]].values.tolist(), data_aux[plot["y"]].values.tolist())
|
|
|
|
| 44 |
|
| 45 |
if "Quantity of Pizzas" in plot["title"]:
|
| 46 |
sns.countplot(data=df, x=plot["x"], hue=plot["hue"], ax=ax)
|
|
|
|
| 41 |
if "Top Selling Pizzas" in plot["title"]:
|
| 42 |
data_aux = df.groupby(plot["x"])[plot["y"]].sum().reset_index().sort_values(by=plot["y"], ascending=False).head(plot["top"])
|
| 43 |
ax.bar(data_aux[plot["x"]].values.tolist(), data_aux[plot["y"]].values.tolist())
|
| 44 |
+
ax.tick_params(axis='x', rotation=45)
|
| 45 |
|
| 46 |
if "Quantity of Pizzas" in plot["title"]:
|
| 47 |
sns.countplot(data=df, x=plot["x"], hue=plot["hue"], ax=ax)
|