cyberosa commited on
Commit
4a24b3a
·
1 Parent(s): f9c2de2

updating graphs and scripts when no_olas data is present

Browse files
app.py CHANGED
@@ -650,12 +650,12 @@ with demo:
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():
 
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:a111f63a2c14218a53c3e807716e8430385b97044058fa61c57c412a3cc2a49a
3
- size 410473
 
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:102555bed875b91016bd25c6026c2d3b8293fa879e355a75083529cf76609234
3
- size 66446
 
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:2cc94ec3be6bdd462f201beed7511ea80234e8825d3e47946a5526a734283fd9
3
- size 306452
 
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:1633afc5d408263251ae5290e1f45972abaf0d3f0358ab880604de8a0baae559
3
- size 283140
 
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:4984915db2b2c68d7afa15b54a2eed15fa5512e895291d492bd8c18cd1cdbd66
3
- size 53337
 
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": 89,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
@@ -21,7 +21,7 @@
21
  },
22
  {
23
  "cell_type": "code",
24
- "execution_count": 230,
25
  "metadata": {},
26
  "outputs": [],
27
  "source": [
@@ -30,16 +30,16 @@
30
  },
31
  {
32
  "cell_type": "code",
33
- "execution_count": 114,
34
  "metadata": {},
35
  "outputs": [
36
  {
37
  "data": {
38
  "text/plain": [
39
- "1020643"
40
  ]
41
  },
42
- "execution_count": 114,
43
  "metadata": {},
44
  "output_type": "execute_result"
45
  }
@@ -50,7 +50,7 @@
50
  },
51
  {
52
  "cell_type": "code",
53
- "execution_count": 231,
54
  "metadata": {},
55
  "outputs": [
56
  {
@@ -61,7 +61,7 @@
61
  " dtype='object')"
62
  ]
63
  },
64
- "execution_count": 231,
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": 234,
128
  "metadata": {},
129
  "outputs": [
130
  {
131
- "data": {
132
- "text/plain": [
133
- "staking\n",
134
- "non_Olas 112597\n",
135
- "non_staking 23586\n",
136
- "pearl 7657\n",
137
- "quickstart 4352\n",
138
- "Name: count, dtype: int64"
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": [