Spaces:
Sleeping
Sleeping
cyberosa commited on
Commit ·
4fd6aee
1
Parent(s): 17301f4
typo
Browse files- tabs/dist_gap.py +1 -1
tabs/dist_gap.py
CHANGED
|
@@ -31,7 +31,7 @@ def get_distribution_plot(markets_data: pd.DataFrame):
|
|
| 31 |
|
| 32 |
def get_kde_with_trades(markets_data: pd.DataFrame):
|
| 33 |
"""Function to paint the density plot of the metric in terms of the number of trades"""
|
| 34 |
-
|
| 35 |
plt.ylabel("Total number of trades per market")
|
| 36 |
return gr.Plot(value=plot.get_figure())
|
| 37 |
|
|
|
|
| 31 |
|
| 32 |
def get_kde_with_trades(markets_data: pd.DataFrame):
|
| 33 |
"""Function to paint the density plot of the metric in terms of the number of trades"""
|
| 34 |
+
plot = sns.kdeplot(markets_data, x="dist_gap_perc", y="total_trades", fill=True)
|
| 35 |
plt.ylabel("Total number of trades per market")
|
| 36 |
return gr.Plot(value=plot.get_figure())
|
| 37 |
|