nazneen commited on
Commit
8b3504c
1 Parent(s): 12e39ba
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ if __name__ == "__main__":
39
  df_plot_2021 = df_plot[df_plot.columns[(df_plot.mean(axis=0)<=40000) & (df_plot.mean(axis=0)>=5000)]]
40
  else:
41
  df_plot_2021 = df_plot[df_plot.columns[df_plot.mean(axis=0)>=40000]]
42
- fig = px.line(df_plot_2021, title="Model Usage Trends in 2021", labels={"index": "Weeks", "value": "Usage", "variable": "Model"})
43
  st.plotly_chart(fig, use_container_width=True)
44
 
45
  with st.container():
@@ -54,7 +54,7 @@ if __name__ == "__main__":
54
  df_plot_2022 = df_plot[df_plot.columns[(df_plot.mean(axis=0)<=1500) & (df_plot.mean(axis=0)>=500)]]
55
  else:
56
  df_plot_2022 = df_plot[df_plot.columns[df_plot.mean(axis=0)>=1500]]
57
- fig = px.line(df_plot_2022, title="Model Usage Trends in 2022", labels={"index": "Weeks", "value": "Usage", "variable": "Model"})
58
  st.plotly_chart(fig, use_container_width=True)
59
 
60
 
 
39
  df_plot_2021 = df_plot[df_plot.columns[(df_plot.mean(axis=0)<=40000) & (df_plot.mean(axis=0)>=5000)]]
40
  else:
41
  df_plot_2021 = df_plot[df_plot.columns[df_plot.mean(axis=0)>=40000]]
42
+ fig = px.line(df_plot_2021, title="Model created in 2021", labels={"index": "Weeks", "value": "Usage", "variable": "Model"})
43
  st.plotly_chart(fig, use_container_width=True)
44
 
45
  with st.container():
 
54
  df_plot_2022 = df_plot[df_plot.columns[(df_plot.mean(axis=0)<=1500) & (df_plot.mean(axis=0)>=500)]]
55
  else:
56
  df_plot_2022 = df_plot[df_plot.columns[df_plot.mean(axis=0)>=1500]]
57
+ fig = px.line(df_plot_2022, title="Model created in 2022", labels={"index": "Weeks", "value": "Usage", "variable": "Model"})
58
  st.plotly_chart(fig, use_container_width=True)
59
 
60