cyberosa commited on
Commit
1c548c3
·
1 Parent(s): 1b041d1

removing one graph

Browse files
Files changed (2) hide show
  1. app.py +7 -5
  2. tabs/dist_gap.py +1 -1
app.py CHANGED
@@ -124,14 +124,16 @@ with demo:
124
  with gr.Row():
125
  kde_plot = get_distribution_plot(markets_data)
126
 
127
- with gr.Row():
128
- gr.Markdown("# Relationship with number of trades")
129
 
130
- with gr.Row():
131
- kde_trades_plot = get_kde_with_trades(markets_data)
132
 
133
  with gr.Row():
134
- gr.Markdown("# Relationship with mean trade size")
 
 
135
 
136
  with gr.Row():
137
  reg_plot = get_regplot_with_mean_trade_size(markets_data)
 
124
  with gr.Row():
125
  kde_plot = get_distribution_plot(markets_data)
126
 
127
+ # with gr.Row():
128
+ # gr.Markdown("# Relationship with number of trades")
129
 
130
+ # with gr.Row():
131
+ # kde_trades_plot = get_kde_with_trades(markets_data)
132
 
133
  with gr.Row():
134
+ gr.Markdown(
135
+ "# Relationship with mean trade size of the market (bet amount in USD)"
136
+ )
137
 
138
  with gr.Row():
139
  reg_plot = get_regplot_with_mean_trade_size(markets_data)
tabs/dist_gap.py CHANGED
@@ -37,7 +37,7 @@ def get_kde_with_trades(markets_data: pd.DataFrame):
37
 
38
 
39
  def get_regplot_with_mean_trade_size(markets_data: pd.DataFrame):
40
- """Function to Plot data and a linear regression model fit"""
41
  regplot = sns.regplot(markets_data, x="dist_gap_perc", y="mean_trade_size")
42
  plt.ylabel("Mean trade size in USD")
43
  return gr.Plot(value=regplot.get_figure())
 
37
 
38
 
39
  def get_regplot_with_mean_trade_size(markets_data: pd.DataFrame):
40
+ """Function to Plot data and a linear regression model fit between the metric and the mean trade size"""
41
  regplot = sns.regplot(markets_data, x="dist_gap_perc", y="mean_trade_size")
42
  plt.ylabel("Mean trade size in USD")
43
  return gr.Plot(value=regplot.get_figure())