Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,14 +11,9 @@ def plot_graph(file):
|
|
| 11 |
|
| 12 |
df[x_axis] = pd.to_datetime(df[x_axis])
|
| 13 |
|
| 14 |
-
plt.figure(
|
| 15 |
-
|
| 16 |
-
plt.plot(group_df[x_axis], group_df[y_axis], label=label)
|
| 17 |
-
|
| 18 |
|
| 19 |
-
plt.title(f'{y_axis} of {group_label} over {x_axis}')
|
| 20 |
-
plt.xlabel(x_axis)
|
| 21 |
-
plt.ylabel(y_axis)
|
| 22 |
plt.legend(title=group_label)
|
| 23 |
plt.grid(True)
|
| 24 |
plt.xticks(rotation=45)
|
|
|
|
| 11 |
|
| 12 |
df[x_axis] = pd.to_datetime(df[x_axis])
|
| 13 |
|
| 14 |
+
plt.figure()
|
| 15 |
+
df.plot()
|
|
|
|
|
|
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
plt.legend(title=group_label)
|
| 18 |
plt.grid(True)
|
| 19 |
plt.xticks(rotation=45)
|