Spaces:
Runtime error
Runtime error
cyberosa
commited on
Commit
Β·
4a24b3a
1
Parent(s):
f9c2de2
updating graphs and scripts when no_olas data is present
Browse files- app.py +6 -6
- data/all_trades_profitability.parquet +2 -2
- data/closed_markets_div.parquet +2 -2
- data/daily_info.parquet +2 -2
- data/retention_activity.parquet +3 -0
- data/unknown_traders.parquet +2 -2
- data/weekly_mech_calls.parquet +2 -2
- notebooks/retention_metrics.ipynb +41 -21
app.py
CHANGED
|
@@ -650,12 +650,12 @@ with demo:
|
|
| 650 |
traders_data, trader_filter="Olas"
|
| 651 |
)
|
| 652 |
|
| 653 |
-
with gr.Row():
|
| 654 |
-
|
| 655 |
-
with gr.Row():
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
|
| 660 |
with gr.TabItem("ποΈWeekly winning trades % per trader"):
|
| 661 |
with gr.Row():
|
|
|
|
| 650 |
traders_data, trader_filter="Olas"
|
| 651 |
)
|
| 652 |
|
| 653 |
+
# with gr.Row():
|
| 654 |
+
# gr.Markdown("# Weekly bet amounts per market for Non-Olas traders")
|
| 655 |
+
# with gr.Row():
|
| 656 |
+
# no_trader_bet_amounts = plot_total_bet_amount_per_trader_per_market(
|
| 657 |
+
# traders_data, trader_filter="non_Olas"
|
| 658 |
+
# )
|
| 659 |
|
| 660 |
with gr.TabItem("ποΈWeekly winning trades % per trader"):
|
| 661 |
with gr.Row():
|
data/all_trades_profitability.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f35e07f90679e6ef7241b3ddaffb3222e04eba8768c06d221358e5cec9a2dc7
|
| 3 |
+
size 7968232
|
data/closed_markets_div.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:200149ef5bf001c3b3c10777b03887387074273dba0237333fae14421b699b88
|
| 3 |
+
size 66133
|
data/daily_info.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a12927dc3b935cb3208aea26426063a569cab6c27afb588765f751af9037e7c1
|
| 3 |
+
size 896490
|
data/retention_activity.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:162ffffff8161f2fabc1ccb32ba2c7d51c402fa373d998698b1a9e868ecce8c6
|
| 3 |
+
size 10795901
|
data/unknown_traders.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cf113d76828b906deb1604877cdd9009074cfc7f5730d86a442329966269dd3
|
| 3 |
+
size 274887
|
data/weekly_mech_calls.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:813e94540515d33c6dcef25d56bf80a8d48c97af19a4e434ba1dbc0e2144270f
|
| 3 |
+
size 53556
|
notebooks/retention_metrics.ipynb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
-
"execution_count":
|
| 6 |
"metadata": {},
|
| 7 |
"outputs": [],
|
| 8 |
"source": [
|
|
@@ -21,7 +21,7 @@
|
|
| 21 |
},
|
| 22 |
{
|
| 23 |
"cell_type": "code",
|
| 24 |
-
"execution_count":
|
| 25 |
"metadata": {},
|
| 26 |
"outputs": [],
|
| 27 |
"source": [
|
|
@@ -30,16 +30,16 @@
|
|
| 30 |
},
|
| 31 |
{
|
| 32 |
"cell_type": "code",
|
| 33 |
-
"execution_count":
|
| 34 |
"metadata": {},
|
| 35 |
"outputs": [
|
| 36 |
{
|
| 37 |
"data": {
|
| 38 |
"text/plain": [
|
| 39 |
-
"
|
| 40 |
]
|
| 41 |
},
|
| 42 |
-
"execution_count":
|
| 43 |
"metadata": {},
|
| 44 |
"output_type": "execute_result"
|
| 45 |
}
|
|
@@ -50,7 +50,7 @@
|
|
| 50 |
},
|
| 51 |
{
|
| 52 |
"cell_type": "code",
|
| 53 |
-
"execution_count":
|
| 54 |
"metadata": {},
|
| 55 |
"outputs": [
|
| 56 |
{
|
|
@@ -61,7 +61,7 @@
|
|
| 61 |
" dtype='object')"
|
| 62 |
]
|
| 63 |
},
|
| 64 |
-
"execution_count":
|
| 65 |
"metadata": {},
|
| 66 |
"output_type": "execute_result"
|
| 67 |
}
|
|
@@ -70,6 +70,30 @@
|
|
| 70 |
"retention_df.columns"
|
| 71 |
]
|
| 72 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
{
|
| 74 |
"cell_type": "code",
|
| 75 |
"execution_count": 232,
|
|
@@ -124,23 +148,19 @@
|
|
| 124 |
},
|
| 125 |
{
|
| 126 |
"cell_type": "code",
|
| 127 |
-
"execution_count":
|
| 128 |
"metadata": {},
|
| 129 |
"outputs": [
|
| 130 |
{
|
| 131 |
-
"
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
},
|
| 141 |
-
"execution_count": 234,
|
| 142 |
-
"metadata": {},
|
| 143 |
-
"output_type": "execute_result"
|
| 144 |
}
|
| 145 |
],
|
| 146 |
"source": [
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
"metadata": {},
|
| 7 |
"outputs": [],
|
| 8 |
"source": [
|
|
|
|
| 21 |
},
|
| 22 |
{
|
| 23 |
"cell_type": "code",
|
| 24 |
+
"execution_count": 7,
|
| 25 |
"metadata": {},
|
| 26 |
"outputs": [],
|
| 27 |
"source": [
|
|
|
|
| 30 |
},
|
| 31 |
{
|
| 32 |
"cell_type": "code",
|
| 33 |
+
"execution_count": 8,
|
| 34 |
"metadata": {},
|
| 35 |
"outputs": [
|
| 36 |
{
|
| 37 |
"data": {
|
| 38 |
"text/plain": [
|
| 39 |
+
"1119622"
|
| 40 |
]
|
| 41 |
},
|
| 42 |
+
"execution_count": 8,
|
| 43 |
"metadata": {},
|
| 44 |
"output_type": "execute_result"
|
| 45 |
}
|
|
|
|
| 50 |
},
|
| 51 |
{
|
| 52 |
"cell_type": "code",
|
| 53 |
+
"execution_count": 4,
|
| 54 |
"metadata": {},
|
| 55 |
"outputs": [
|
| 56 |
{
|
|
|
|
| 61 |
" dtype='object')"
|
| 62 |
]
|
| 63 |
},
|
| 64 |
+
"execution_count": 4,
|
| 65 |
"metadata": {},
|
| 66 |
"output_type": "execute_result"
|
| 67 |
}
|
|
|
|
| 70 |
"retention_df.columns"
|
| 71 |
]
|
| 72 |
},
|
| 73 |
+
{
|
| 74 |
+
"cell_type": "code",
|
| 75 |
+
"execution_count": 9,
|
| 76 |
+
"metadata": {},
|
| 77 |
+
"outputs": [
|
| 78 |
+
{
|
| 79 |
+
"data": {
|
| 80 |
+
"text/plain": [
|
| 81 |
+
"staking\n",
|
| 82 |
+
"quickstart 1002306\n",
|
| 83 |
+
"pearl 70258\n",
|
| 84 |
+
"non_staking 47058\n",
|
| 85 |
+
"Name: count, dtype: int64"
|
| 86 |
+
]
|
| 87 |
+
},
|
| 88 |
+
"execution_count": 9,
|
| 89 |
+
"metadata": {},
|
| 90 |
+
"output_type": "execute_result"
|
| 91 |
+
}
|
| 92 |
+
],
|
| 93 |
+
"source": [
|
| 94 |
+
"retention_df.staking.value_counts()"
|
| 95 |
+
]
|
| 96 |
+
},
|
| 97 |
{
|
| 98 |
"cell_type": "code",
|
| 99 |
"execution_count": 232,
|
|
|
|
| 148 |
},
|
| 149 |
{
|
| 150 |
"cell_type": "code",
|
| 151 |
+
"execution_count": 5,
|
| 152 |
"metadata": {},
|
| 153 |
"outputs": [
|
| 154 |
{
|
| 155 |
+
"ename": "NameError",
|
| 156 |
+
"evalue": "name 'jan6' is not defined",
|
| 157 |
+
"output_type": "error",
|
| 158 |
+
"traceback": [
|
| 159 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
| 160 |
+
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
|
| 161 |
+
"Cell \u001b[0;32mIn[5], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mjan6\u001b[49m\u001b[38;5;241m.\u001b[39mstaking\u001b[38;5;241m.\u001b[39mvalue_counts()\n",
|
| 162 |
+
"\u001b[0;31mNameError\u001b[0m: name 'jan6' is not defined"
|
| 163 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
}
|
| 165 |
],
|
| 166 |
"source": [
|