-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.py
34 lines (16 loc) · 922 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import pandas as pd
import scripts.our_functions as f
# f.complete_funnels(['event_type', 'user_session', 'product_id'])
# f.average_number_operations(['user_session', 'event_type'])
# f.average_views_before_cart(['user_id', 'product_id', 'event_type', 'event_time'])
# f.probability_purchase(['user_session', 'product_id', 'event_type'])
# f.average_time_cart(['event_type', 'user_session', 'product_id', 'event_time'])
# f.average_time_after_first_view(['event_type', 'event_time', 'user_id'])
# print(f.get_profit_per_month('elco'))
# f.price_std_dev(['brand', 'product_id', 'price'])
# f.top_n_two_months_losses(['brand', 'product_id', 'price', 'event_type'], 'Oct', 'Nov')
# f.prove_pareto(['event_type', 'user_id', 'price'])
# f.prove_pareto_ops(['user_id'])
# f.average_time_after_first_view_2(['event_type', 'event_time', 'user_id', 'product_id'])
######## Marco's functions
f.num_sold_per_cat()