add files

This commit is contained in:
Lana Rubchenia 2020-10-01 14:31:49 +01:00 committed by GitHub
parent 034931911e
commit 978cdb2a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 80 additions and 0 deletions

79
campaign_events.csv Normal file
View File

@ -0,0 +1,79 @@
# ----------------------------------------
# Master Landing View
# Campaigns
# 20200901-20200930
# ----------------------------------------
Campaign,Event Action,Users,New Users,Sessions,Bounce Rate,Pages/Session,Avg. Session Duration,Make a month payment (Goal 1 Conversion Rate),Make a month payment (Goal 1 Completions),Make a month payment (Goal 1 Value)
Player_Hobby_Sep16,Watch & Learn click,6,6,7,0.00%,7.00,00:02:03,0.00%,0,US$0.00
29Aug-6Sep,Add Player' click,5,4,5,0.00%,2.60,00:00:46,0.00%,0,US$0.00
29Aug-6Sep,Add Player Close click,4,3,4,0.00%,2.75,00:00:49,0.00%,0,US$0.00
Insta Bio Free,Add Player' click,4,2,4,0.00%,6.50,00:08:57,0.00%,0,US$0.00
Player_Hobby_Sep16,Read & Learn click,4,4,4,0.00%,6.50,00:01:36,0.00%,0,US$0.00
Insta Bio Free,Read & Learn click,3,0,3,0.00%,10.33,00:02:03,0.00%,0,US$0.00
Insta Bio Free,Watch & Learn click,3,1,3,0.00%,10.33,00:01:34,0.00%,0,US$0.00
Player_Hobby_Sep16,Upper Download click,3,3,3,0.00%,2.00,00:00:19,0.00%,0,US$0.00
29Aug-6Sep,Navigate' click,2,1,2,0.00%,3.50,00:01:03,0.00%,0,US$0.00
Insta Bio Free,Add Extension' click,2,1,2,0.00%,10.00,00:16:40,0.00%,0,US$0.00
Insta Bio Free,Add Tutor' click,2,1,2,0.00%,10.00,00:16:40,0.00%,0,US$0.00
Insta Bio Free,Navigate' click,2,1,2,0.00%,12.00,00:03:03,0.00%,0,US$0.00
Insta Bio Free,Play' click,2,1,2,0.00%,10.00,00:16:40,0.00%,0,US$0.00
Insta Bio Free,Reviews right click,2,1,2,0.00%,12.00,00:03:03,0.00%,0,US$0.00
Player_Hobby_Sep16,Free start click,2,2,2,0.00%,3.50,00:00:44,0.00%,0,US$0.00
Player_Hobby_Sep16,Logo click,2,2,2,0.00%,12.00,00:04:09,0.00%,0,US$0.00
29Aug-6Sep,About Us click,1,1,1,0.00%,2.00,00:00:19,0.00%,0,US$0.00
29Aug-6Sep,Add Player Submit click,1,1,1,0.00%,2.00,00:00:36,0.00%,0,US$0.00
29Aug-6Sep,Add Tutor' click,1,1,1,0.00%,2.00,00:00:40,0.00%,0,US$0.00
29Aug-6Sep,Listen' click,1,1,1,0.00%,2.00,00:00:13,0.00%,0,US$0.00
29Aug-6Sep,Logo click,1,0,1,0.00%,5.00,00:01:29,0.00%,0,US$0.00
29Aug-6Sep,Play' click,1,1,1,0.00%,2.00,00:00:36,0.00%,0,US$0.00
29Aug-6Sep,Read & Learn click,1,1,1,0.00%,6.00,00:00:22,0.00%,0,US$0.00
29Aug-6Sep,Reviews right click,1,0,1,0.00%,5.00,00:01:29,0.00%,0,US$0.00
29Aug-6Sep,Watch & Learn click,1,0,1,0.00%,5.00,00:01:29,0.00%,0,US$0.00
aug5-aug12,Contact Us click,1,1,1,0.00%,2.00,00:00:52,0.00%,0,US$0.00
Insta Bio Free,About Us click,1,1,1,0.00%,2.00,00:00:12,0.00%,0,US$0.00
Insta Bio Free,Choose Free Plan click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
Insta Bio Free,Contact Us click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
Insta Bio Free,Language choose,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
Insta Bio Free,Logo click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
Insta Bio Free,Reviews left click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
Insta Bio Free,Understand' click,1,1,1,0.00%,2.00,00:00:27,0.00%,0,US$0.00
Player_Hobby_Sep16,About Us click,1,1,1,0.00%,12.00,00:07:16,0.00%,0,US$0.00
Player_Hobby_Sep16,Add Player' click,1,1,1,0.00%,12.00,00:07:16,0.00%,0,US$0.00
Player_Hobby_Sep16,Contact Us click,1,1,1,0.00%,12.00,00:07:16,0.00%,0,US$0.00
Player_Hobby_Sep16,Language choose,1,1,1,0.00%,12.00,00:01:01,0.00%,0,US$0.00
Player_Hobby_Sep16,Lower Download click,1,1,1,0.00%,2.00,00:00:34,0.00%,0,US$0.00
,,70,47,71,0.00%,7.13,00:03:24,0.00%,0,US$0.00
Day Index,Users
01/09/2020,18
02/09/2020,6
03/09/2020,2
04/09/2020,1
05/09/2020,1
06/09/2020,1
07/09/2020,0
08/09/2020,0
09/09/2020,1
10/09/2020,0
11/09/2020,0
12/09/2020,0
13/09/2020,1
14/09/2020,0
15/09/2020,1
16/09/2020,12
17/09/2020,12
18/09/2020,21
19/09/2020,0
20/09/2020,1
21/09/2020,17
22/09/2020,0
23/09/2020,0
24/09/2020,0
25/09/2020,0
26/09/2020,0
27/09/2020,1
28/09/2020,0
29/09/2020,0
30/09/2020,0
,96
1 # ----------------------------------------
2 # Master Landing View
3 # Campaigns
4 # 20200901-20200930
5 # ----------------------------------------
6 Campaign,Event Action,Users,New Users,Sessions,Bounce Rate,Pages/Session,Avg. Session Duration,Make a month payment (Goal 1 Conversion Rate),Make a month payment (Goal 1 Completions),Make a month payment (Goal 1 Value)
7 Player_Hobby_Sep16,Watch & Learn click,6,6,7,0.00%,7.00,00:02:03,0.00%,0,US$0.00
8 29Aug-6Sep,Add Player' click,5,4,5,0.00%,2.60,00:00:46,0.00%,0,US$0.00
9 29Aug-6Sep,Add Player Close click,4,3,4,0.00%,2.75,00:00:49,0.00%,0,US$0.00
10 Insta Bio Free,Add Player' click,4,2,4,0.00%,6.50,00:08:57,0.00%,0,US$0.00
11 Player_Hobby_Sep16,Read & Learn click,4,4,4,0.00%,6.50,00:01:36,0.00%,0,US$0.00
12 Insta Bio Free,Read & Learn click,3,0,3,0.00%,10.33,00:02:03,0.00%,0,US$0.00
13 Insta Bio Free,Watch & Learn click,3,1,3,0.00%,10.33,00:01:34,0.00%,0,US$0.00
14 Player_Hobby_Sep16,Upper Download click,3,3,3,0.00%,2.00,00:00:19,0.00%,0,US$0.00
15 29Aug-6Sep,Navigate' click,2,1,2,0.00%,3.50,00:01:03,0.00%,0,US$0.00
16 Insta Bio Free,Add Extension' click,2,1,2,0.00%,10.00,00:16:40,0.00%,0,US$0.00
17 Insta Bio Free,Add Tutor' click,2,1,2,0.00%,10.00,00:16:40,0.00%,0,US$0.00
18 Insta Bio Free,Navigate' click,2,1,2,0.00%,12.00,00:03:03,0.00%,0,US$0.00
19 Insta Bio Free,Play' click,2,1,2,0.00%,10.00,00:16:40,0.00%,0,US$0.00
20 Insta Bio Free,Reviews right click,2,1,2,0.00%,12.00,00:03:03,0.00%,0,US$0.00
21 Player_Hobby_Sep16,Free start click,2,2,2,0.00%,3.50,00:00:44,0.00%,0,US$0.00
22 Player_Hobby_Sep16,Logo click,2,2,2,0.00%,12.00,00:04:09,0.00%,0,US$0.00
23 29Aug-6Sep,About Us click,1,1,1,0.00%,2.00,00:00:19,0.00%,0,US$0.00
24 29Aug-6Sep,Add Player Submit click,1,1,1,0.00%,2.00,00:00:36,0.00%,0,US$0.00
25 29Aug-6Sep,Add Tutor' click,1,1,1,0.00%,2.00,00:00:40,0.00%,0,US$0.00
26 29Aug-6Sep,Listen' click,1,1,1,0.00%,2.00,00:00:13,0.00%,0,US$0.00
27 29Aug-6Sep,Logo click,1,0,1,0.00%,5.00,00:01:29,0.00%,0,US$0.00
28 29Aug-6Sep,Play' click,1,1,1,0.00%,2.00,00:00:36,0.00%,0,US$0.00
29 29Aug-6Sep,Read & Learn click,1,1,1,0.00%,6.00,00:00:22,0.00%,0,US$0.00
30 29Aug-6Sep,Reviews right click,1,0,1,0.00%,5.00,00:01:29,0.00%,0,US$0.00
31 29Aug-6Sep,Watch & Learn click,1,0,1,0.00%,5.00,00:01:29,0.00%,0,US$0.00
32 aug5-aug12,Contact Us click,1,1,1,0.00%,2.00,00:00:52,0.00%,0,US$0.00
33 Insta Bio Free,About Us click,1,1,1,0.00%,2.00,00:00:12,0.00%,0,US$0.00
34 Insta Bio Free,Choose Free Plan click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
35 Insta Bio Free,Contact Us click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
36 Insta Bio Free,Language choose,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
37 Insta Bio Free,Logo click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
38 Insta Bio Free,Reviews left click,1,0,1,0.00%,16.00,00:01:59,0.00%,0,US$0.00
39 Insta Bio Free,Understand' click,1,1,1,0.00%,2.00,00:00:27,0.00%,0,US$0.00
40 Player_Hobby_Sep16,About Us click,1,1,1,0.00%,12.00,00:07:16,0.00%,0,US$0.00
41 Player_Hobby_Sep16,Add Player' click,1,1,1,0.00%,12.00,00:07:16,0.00%,0,US$0.00
42 Player_Hobby_Sep16,Contact Us click,1,1,1,0.00%,12.00,00:07:16,0.00%,0,US$0.00
43 Player_Hobby_Sep16,Language choose,1,1,1,0.00%,12.00,00:01:01,0.00%,0,US$0.00
44 Player_Hobby_Sep16,Lower Download click,1,1,1,0.00%,2.00,00:00:34,0.00%,0,US$0.00
45 ,,70,47,71,0.00%,7.13,00:03:24,0.00%,0,US$0.00
46 Day Index,Users
47 01/09/2020,18
48 02/09/2020,6
49 03/09/2020,2
50 04/09/2020,1
51 05/09/2020,1
52 06/09/2020,1
53 07/09/2020,0
54 08/09/2020,0
55 09/09/2020,1
56 10/09/2020,0
57 11/09/2020,0
58 12/09/2020,0
59 13/09/2020,1
60 14/09/2020,0
61 15/09/2020,1
62 16/09/2020,12
63 17/09/2020,12
64 18/09/2020,21
65 19/09/2020,0
66 20/09/2020,1
67 21/09/2020,17
68 22/09/2020,0
69 23/09/2020,0
70 24/09/2020,0
71 25/09/2020,0
72 26/09/2020,0
73 27/09/2020,1
74 28/09/2020,0
75 29/09/2020,0
76 30/09/2020,0
77 ,96

View File

@ -0,0 +1 @@
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"import pandas as pd \n\n#Read csv files and print needed colomns\n\ncsv_file = 'campaign_events.csv'\nrow_number = 38\ncol_list = ['Campaign', 'Event Action', 'New Users', 'Avg. Session Duration']\ndwnd_btn = ['Free start click', 'Main \\'Free Start\\' Click', 'Add Player\\' click', 'Upper Download click', 'Lower Download click']\n\ndef read_file(csv_file):\n df = pd.read_csv(csv_file, skiprows = 6, usecols = col_list)\n result = df.head(row_number)\n \n #campaign dictionary form\n campaign_dic = {}\n for _, row in result.iterrows():\n campaign_name = row['Campaign']\n action_name = row['Event Action']\n new_users = row['New Users'] \n\n if action_name in dwnd_btn:\n if campaign_name in campaign_dic:\n campaign_dic[campaign_name] += new_users \n else:\n campaign_dic[campaign_name] = new_users\n\n return campaign_dic\n\nprint(read_file(csv_file))\n","execution_count":1,"outputs":[{"name":"stdout","output_type":"stream","text":"{'29Aug-6Sep': 4.0, 'Insta Bio Free': 2.0, 'Player_Hobby_Sep16': 7.0}\n"}]},{"metadata":{"trusted":true},"cell_type":"code","source":"\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"},"language_info":{"name":"python","version":"3.7.8","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":4}