StevenLe456 commited on
Commit
0444608
·
1 Parent(s): fc4ec0f

Test generation of box plot

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  from dash import callback, Dash, dcc, html, Input, Output
2
  import pandas as pd
 
3
  import pyarrow
4
 
5
  app = Dash(__name__)
@@ -46,5 +47,11 @@ def visualize_stats(input_value):
46
  if input_value == "Monkey's Age":
47
  pass
48
 
 
 
 
 
 
 
49
  def main():
50
  app.run(debug=True)
 
1
  from dash import callback, Dash, dcc, html, Input, Output
2
  import pandas as pd
3
+ import plotly.express as px
4
  import pyarrow
5
 
6
  app = Dash(__name__)
 
47
  if input_value == "Monkey's Age":
48
  pass
49
 
50
+ def create_stat_figs(val):
51
+ if val == "Monkey's Age":
52
+ return html.Div([
53
+ px.box(df, x="monkey_age", y="cue_rate")
54
+ ])
55
+
56
  def main():
57
  app.run(debug=True)