Spreadsheet: 102566d1300481901-collapsing-data-and-averaging-by-user-id-exampledata
Sheet: Sheet1

user id | month | churn | plan | min
19164958 | 15219 | 0 | 1 | 57
19164958 | 15249 | 0 | 1 | 21
19164958 | 15280 | 0 | 1 | 40
19164958 | 15310 | 0 | 1 | 60
19164958 | 15341 | 0 | 1 | 99
19164958 | 15372 | 0 | 1 | 200
19164958 | 15400 | 0 | 1 | 167.5
19164958 | 15431 | 0 | 1 | 135
19164958 | 15461 | 0 | 1 | 93
19164958 | 15492 | 0 | 1 | 104
19164958 | 15522 | 0 | 1 | 26
19164958 | 15553 | 0 | 1 | 30
19164958 | 15584 | 0 | 1 | 0
19164958 | 15614 | 0 | 1 | 83
19164958 | 15645 | 0 | 1 | 174
19164958 | 15675 | 0 | 1 | 148
19164958 | 15706 | 0 | 1 | 276
19164958 | 15737 | 0 | 1 | 124
19164958 | 15765 | 0 | 1 | 101
19164958 | 15796 | 1 | 1 | 116
43061957 | 15219 | 0 | 3 | 245
43061957 | 15249 | 0 | 3 | 244
43061957 | 15280 | 0 | 3 | 286
43061957 | 15310 | 0 | 3 | 238
43061957 | 15341 | 0 | 3 | 284
43061957 | 15372 | 0 | 3 | 377
43061957 | 15400 | 0 | 3 | 328
43061957 | 15431 | 0 | 3 | 279
43061957 | 15461 | 0 | 3 | 330
43061957 | 15492 | 0 | 3 | 278
43061957 | 15522 | 0 | 3 | 252
43061957 | 15553 | 0 | 3 | 334
43061957 | 15584 | 0 | 3 | 54
43061957 | 15614 | 1 | 3 | 0
47196850 | 15280 | 0 | 1 | 27
47196850 | 15310 | 0 | 1 | 175
47196850 | 15341 | 0 | 1 | 91
47196850 | 15372 | 0 | 1 | 221
47196850 | 15400 | 0 | 1 | 176
47196850 | 15431 | 0 | 1 | 131
47196850 | 15461 | 0 | 1 | 67
47196850 | 15492 | 0 | 1 | 188
47196850 | 15522 | 0 | 1 | 88
47196850 | 15553 | 0 | 1 | 133
47196850 | 15584 | 0 | 1 | 126
47196850 | 15614 | 0 | 1 | 101
47196850 | 15645 | 0 | 1 | 170
47196850 | 15675 | 0 | 1 | 97
47196850 | 15706 | 0 | 1 | 241
47196850 | 15737 | 0 | 1 | 118
47196850 | 15765 | 0 | 2 | 176
47196850 | 15796 | 0 | 2 | 183
47196850 | 15826 | 0 | 2 | 485
51236987 | 15280 | 0 | 3 | 77
51236987 | 15310 | 0 | 3 | 549
51236987 | 15341 | 0 | 3 | 464
51236987 | 15372 | 0 | 3 | 256
51236987 | 15400 | 0 | 3 | 287.5
51236987 | 15431 | 0 | 3 | 319
51236987 | 15461 | 0 | 3 | 327
51236987 | 15492 | 0 | 3 | 320
51236987 | 15522 | 0 | 3 | 346
51236987 | 15553 | 0 | 3 | 315
51236987 | 15584 | 0 | 3 | 235
51236987 | 15614 | 0 | 3 | 284
51236987 | 15645 | 0 | 3 | 292
51236987 | 15675 | 0 | 3 | 345
51236987 | 15706 | 0 | 3 | 384
51236987 | 15737 | 1 | 3 | 316
54271247 | 15219 | 0 | 1 | 37
54271247 | 15249 | 0 | 1 | 56
54271247 | 15280 | 0 | 1 | 60
54271247 | 15310 | 0 | 1 | 72
54271247 | 15341 | 0 | 1 | 77
54271247 | 15372 | 0 | 1 | 193
54271247 | 15400 | 0 | 1 | 117.5
54271247 | 15431 | 0 | 1 | 42
54271247 | 15461 | 0 | 1 | 61
54271247 | 15492 | 0 | 1 | 61
54271247 | 15522 | 0 | 1 | 78
54271247 | 15553 | 0 | 1 | 169
54271247 | 15584 | 0 | 1 | 83
54271247 | 15614 | 0 | 1 | 249
54271247 | 15645 | 1 | 1 | 138
70765025 | 15219 | 0 | 3 | 169
70765025 | 15249 | 0 | 3 | 128
70765025 | 15280 | 0 | 3 | 35
70765025 | 15310 | 0 | 3 | 0
70765025 | 15341 | 0 | 3 | 117
70765025 | 15372 | 0 | 3 | 116
70765025 | 15400 | 0 | 3 | 121
70765025 | 15431 | 0 | 3 | 126
70765025 | 15461 | 0 | 3 | 106
70765025 | 15492 | 0 | 3 | 96
70765025 | 15522 | 0 | 3 | 0
70765025 | 15553 | 0 | 3 | 64
70765025 | 15584 | 0 | 3 | 63
70765025 | 15614 | 0 | 3 | 17
70765025 | 15645 | 1 | 3 | 0
70781923 | 15219 | 0 | 3 | 311
70781923 | 15249 | 0 | 3 | 334
70781923 | 15280 | 0 | 3 | 409
70781923 | 15310 | 0 | 3 | 261
70781923 | 15341 | 0 | 3 | 291
70781923 | 15372 | 0 | 3 | 353
70781923 | 15400 | 0 | 3 | 294
70781923 | 15431 | 0 | 3 | 235
70781923 | 15461 | 0 | 3 | 407
70781923 | 15492 | 0 | 3 | 237
70781923 | 15522 | 0 | 3 | 350
70781923 | 15553 | 0 | 3 | 346
70781923 | 15584 | 0 | 3 | 394
70781923 | 15614 | 0 | 3 | 327
70781923 | 15645 | 0 | 3 | 372
70781923 | 15675 | 0 | 3 | 403
70781923 | 15706 | 0 | 3 | 465
70781923 | 15737 | 0 | 3 | 398
70781923 | 15765 | 0 | 3 | 293
70781923 | 15796 | 0 | 3 | 284
70781923 | 15826 | 0 | 3 | 188
70782614 | 15219 | 0 | 3 | 2
70782614 | 15249 | 0 | 3 | 177
70782614 | 15280 | 0 | 3 | 280
70782614 | 15310 | 0 | 3 | 177
70782614 | 15341 | 0 | 3 | 273
70782614 | 15372 | 0 | 3 | 158
70782614 | 15400 | 0 | 3 | 177.5
70782614 | 15431 | 0 | 3 | 197
70782614 | 15461 | 0 | 3 | 211
70782614 | 15492 | 0 | 3 | 237
70782614 | 15522 | 0 | 3 | 292
70782614 | 15553 | 0 | 3 | 209
70782614 | 15584 | 0 | 3 | 191
70782614 | 15614 | 0 | 3 | 229
70782614 | 15645 | 0 | 3 | 277
70782614 | 15675 | 0 | 3 | 383
70782614 | 15706 | 0 | 3 | 344
70782614 | 15737 | 0 | 4 | 548
70782614 | 15765 | 0 | 4 | 262
70782614 | 15796 | 0 | 4 | 331
70782614 | 15826 | 0 | 4 | 336
70797166 | 15219 | 0 | 3 | 83
70797166 | 15249 | 0 | 3 | 217
70797166 | 15280 | 0 | 3 | 202
70797166 | 15310 | 0 | 3 | 181
70797166 | 15341 | 0 | 3 | 163
70797166 | 15372 | 0 | 3 | 190
70797166 | 15400 | 0 | 3 | 262
70797166 | 15431 | 0 | 3 | 334
70797166 | 15461 | 0 | 3 | 134
70797166 | 15492 | 0 | 3 | 309
70797166 | 15522 | 0 | 3 | 177
70797166 | 15553 | 0 | 3 | 233
70797166 | 15584 | 0 | 3 | 332
70797166 | 15614 | 0 | 3 | 87
70797166 | 15645 | 0 | 3 | 451
70797166 | 15675 | 0 | 3 | 81
70797166 | 15706 | 0 | 3 | 319
70797166 | 15737 | 0 | 3 | 339
70797166 | 15765 | 0 | 3 | 293
70797166 | 15796 | 0 | 3 | 135
70797166 | 15826 | 0 | 3 | 171
70992941 | 15219 | 0 | 3 | 126
70992941 | 15249 | 0 | 3 | 247
70992941 | 15280 | 0 | 3 | 428
70992941 | 15310 | 0 | 3 | 409
70992941 | 15341 | 0 | 3 | 264
70992941 | 15372 | 0 | 3 | 320
70992941 | 15400 | 0 | 3 | 326.5
70992941 | 15431 | 0 | 3 | 333
70992941 | 15461 | 0 | 3 | 278
70992941 | 15492 | 0 | 3 | 285
70992941 | 15522 | 0 | 3 | 235
70992941 | 15553 | 1 | 3 | 263
70995813 | 15219 | 0 | 3 | 163
70995813 | 15249 | 0 | 3 | 350
70995813 | 15280 | 0 | 3 | 213
70995813 | 15310 | 0 | 3 | 426
70995813 | 15341 | 0 | 3 | 368
70995813 | 15372 | 0 | 3 | 225
70995813 | 15400 | 0 | 3 | 370
70995813 | 15431 | 0 | 3 | 515
70995813 | 15461 | 0 | 3 | 18
70995813 | 15492 | 0 | 3 | 11
70995813 | 15522 | 0 | 3 | 2
70995813 | 15553 | 0 | 3 | 19
70995813 | 15584 | 0 | 3 | 0
70995813 | 15614 | 0 | 3 | 0
70995813 | 15645 | 0 | 3 | 177
70995813 | 15675 | 0 | 3 | 169
70995813 | 15706 | 0 | 3 | 263
70995813 | 15737 | 0 | 3 | 216
70995813 | 15765 | 0 | 3 | 180
70995813 | 15796 | 0 | 3 | 180
70995813 | 15826 | 0 | 3 | 228
71000813 | 15219 | 0 | 3 | 251
71000813 | 15249 | 0 | 3 | 275
71000813 | 15280 | 0 | 3 | 356
71000813 | 15310 | 0 | 3 | 371