ZachGF commited on
Commit
361143b
·
verified ·
1 Parent(s): f81440f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
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(figsize=(10, 5))
15
- for label, group_df in df.groupby(group_label):
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)