cyberosa commited on
Commit
ac1c55d
·
1 Parent(s): fa68d78

Better description of the graph

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. tabs/dist_gap.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from tabs.tokens_dist import (
9
  )
10
  from tabs.dist_gap import (
11
  get_distribution_plot,
12
- get_avg_gap_time_evolution,
13
  get_correlation_map,
14
  get_kde_with_trades,
15
  get_kde_with_total_bet_amount,
@@ -96,11 +96,11 @@ with demo:
96
  )
97
  with gr.Row():
98
  gr.Markdown(
99
- "Time evolution of the average distribution gap percentage of all markets"
100
  )
101
 
102
  with gr.Row():
103
- mean_plot = get_avg_gap_time_evolution(markets_data)
104
 
105
  with gr.TabItem("📏 Distribution gap metric for all markets"):
106
  # remove samples with no trades
 
9
  )
10
  from tabs.dist_gap import (
11
  get_distribution_plot,
12
+ get_avg_gap_time_evolution_grouped_markets,
13
  get_correlation_map,
14
  get_kde_with_trades,
15
  get_kde_with_total_bet_amount,
 
96
  )
97
  with gr.Row():
98
  gr.Markdown(
99
+ "Time evolution of the average distribution gap percentage of markets created the same day"
100
  )
101
 
102
  with gr.Row():
103
+ mean_plot = get_avg_gap_time_evolution_grouped_markets(markets_data)
104
 
105
  with gr.TabItem("📏 Distribution gap metric for all markets"):
106
  # remove samples with no trades
tabs/dist_gap.py CHANGED
@@ -48,7 +48,7 @@ def get_dist_gap_timeline_plotly(market_id: str, all_markets: pd.DataFrame) -> g
48
  return gr.Plot(value=fig)
49
 
50
 
51
- def get_avg_gap_time_evolution(all_markets: pd.DataFrame) -> gr.Plot:
52
  # filter by the opening datetime
53
  current = pd.Timestamp("today")
54
 
 
48
  return gr.Plot(value=fig)
49
 
50
 
51
+ def get_avg_gap_time_evolution_grouped_markets(all_markets: pd.DataFrame) -> gr.Plot:
52
  # filter by the opening datetime
53
  current = pd.Timestamp("today")
54