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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
|
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import plotnine as p9\n",
"import sys\n",
"\n",
"sys.path.append(\"../\")\n",
"from k8s_survey_analysis import prepare_2019\n",
"\n",
"pd.options.display.max_columns = 999\n",
"from textwrap import wrap\n",
"from k8s_survey_analysis.plot_utils import (\n",
" make_bar_chart,\n",
" make_likert_chart,\n",
" make_single_bar_chart,\n",
" make_single_likert_chart,\n",
")\n",
"\n",
"# Silence warnings from PlotNine, mostly about overwriting x_scales\n",
"import warnings\n",
"from plotnine.exceptions import PlotnineWarning\n",
"\n",
"warnings.filterwarnings(\"ignore\", category=PlotnineWarning)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Prepare data so the format is as compatible with the 2018 data as possible"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"survey_data = prepare_2019.get_df(\n",
" \"contribex-survey-2019.csv\"\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Examine response rates per day"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(survey_data, p9.aes(x=\"date_taken\"))\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(x=\"Survey Date\", y=\"Number of Responses\", title=\"Responses Per Day\")\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The high spike seen on 1/13/20 aligns with the time when the survey was publicized on Twitter. To consider the potential effects of this, we examine how the response rate varied by various demographic information. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Examine response rates by contribution length, level and interest in next level"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"response_rates = (\n",
" survey_data.groupby([\"date_taken\", \"Contributing_Length\", \"Level_of_Contributor\"])\n",
" .count()\n",
" .reindex(\n",
" pd.MultiIndex.from_product(\n",
" [\n",
" survey_data[survey_data[y].notnull()][y].unique().tolist()\n",
" for y in [\"date_taken\", \"Contributing_Length\", \"Level_of_Contributor\"]\n",
" ],\n",
" names=[\"date_taken\", \"Contributing_Length\", \"Level_of_Contributor\"],\n",
" ),\n",
" fill_value=0,\n",
" )\n",
" .reset_index()\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"response_rates = response_rates.assign(\n",
" grp=response_rates.Contributing_Length.str.cat(response_rates.Level_of_Contributor)\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(response_rates,\n",
" p9.aes(x='factor(date_taken)',\n",
" y='Respondent_ID',\n",
" group='grp',\n",
" linetype='Contributing_Length',\n",
" color='Level_of_Contributor')) + \n",
" p9.geom_line() + \n",
" p9.labs(x='Survey Data',\n",
" linetype = \"Length of Contribution\", \n",
" color='Contributor Level', \n",
" y='Number of Responses') +\n",
" p9.theme(axis_text_x = p9.element_text(angle=45, ha='right'))\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The survey was advertised on Twitter, and two groups had the largest number of disproportionate responses. Those responses came from either contributors working on their membership, or users that have been contributing less than a year. The largest group is users that fall into both categories."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(survey_data, p9.aes(x=\"date_taken\", fill=\"factor(Contributing_Length)\"))\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(x=\"Survey Date\", y=\"Number of Responses\", title=\"Responses Per Day\", fill='Contributing Length')\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" survey_data[survey_data[\"Level_of_Contributor\"].notnull()],\n",
" p9.aes(x=\"date_taken\", fill=\"factor(Level_of_Contributor)\"),\n",
" )\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(x=\"Survey Date\", y=\"Number of Responses\", title=\"Responses Per Day\", fill='Level of Contributor')\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" survey_data[survey_data[\"Interested_in_next_level\"].notnull()],\n",
" p9.aes(x=\"date_taken\", fill=\"factor(Interested_in_next_level)\"),\n",
" )\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(x=\"Survey Date\", y=\"Number of Responses\", title=\"Responses Per Day\", fill=\"Interest in Next Level\")\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Univariate histograms\n",
"\n",
"In the following sections, we look at the rest of the demographic variables individually. This allows us to see who responded to the survey."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(survey_data, p9.aes(x=\"Contributing_Length\"))\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45))\n",
" + p9.scale_x_discrete(\n",
" limits=[\n",
" \"less than one year\",\n",
" \"one to two years\",\n",
" \"two to three years\",\n",
" \"3+ years\",\n",
" ]\n",
" )\n",
" + p9.ggtitle(\"Number of Contributors by Length of Contribution\")\n",
" + p9.xlab(\"Length of Contribution\")\n",
" + p9.ylab(\"Number of Contributors\")\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" survey_data[survey_data[\"Level_of_Contributor\"].notnull()],\n",
" p9.aes(x=\"Level_of_Contributor\"),\n",
" )\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(\n",
" title=\"Number of Contributors by Contributor Level\",\n",
" x=\"Contributor Level\",\n",
" y=\"Number of Contributors\",\n",
" )\n",
" + p9.scale_x_discrete(labels=lambda x: [\"\\n\".join(wrap(label, 20)) for label in x])\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" survey_data[survey_data[\"World_Region\"].notnull()], p9.aes(x=\"World_Region\")\n",
" )\n",
" + p9.geom_bar()\n",
" + p9.labs(\n",
" title=\"Number of Contributors by World Region\",\n",
" x=\"World Region\",\n",
" y=\"Number of Contributors\",\n",
" )\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" survey_data[survey_data[\"Interested_in_next_level\"].notnull()],\n",
" p9.aes(x=\"Interested_in_next_level\"),\n",
" )\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(\n",
" title=\"Number of Contributors by Interest in Next Level\",\n",
" x=\"Interest in Next Level\",\n",
" y=\"Number of Contributors\",\n",
" )\n",
" + p9.scale_x_discrete(labels=lambda x: [\"\\n\".join(wrap(label, 20)) for label in x])\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(survey_data, p9.aes(x=\"Contribute_to_other_OSS\"))\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.scale_x_discrete(\n",
" limits=[\"this is my first open source project!\", \"1 other\", \"2 or more\"]\n",
" )\n",
" + p9.ggtitle(\"Participation in Other Open Source Projects\")\n",
" + p9.xlab(\"Number of other OSS Projects\")\n",
" + p9.ylab(\"Number of Contributors\")\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"employer_support = (\n",
" p9.ggplot(survey_data, p9.aes(x=\"Upstream_supported_at_employer\"))\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(title=\"Support by Employer\", x=\"Support Level\", y=\"Count\")\n",
")\n",
"employer_support"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 2-Way Cross Tabulations\n",
"\n",
"Before we look at the relation between demographic data and questions of interest, we look at two-way cross tabulations in demographic data."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(survey_data.World_Region, survey_data.Level_of_Contributor)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(survey_data.Contributing_Length, survey_data.Level_of_Contributor).loc[\n",
" [\"less than one year\", \"one to two years\", \"two to three years\", \"three+ years\"]\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(survey_data.Contributing_Length, survey_data.Contribute_to_other_OSS).loc[\n",
" [\"less than one year\", \"one to two years\", \"two to three years\", \"three+ years\"],\n",
" [\"this is my first open source project!\", \"1 other\", \"2 or more\"],\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(\n",
" survey_data.Level_of_Contributor, survey_data.Upstream_supported_at_employer\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(\n",
" survey_data.Interested_in_next_level, survey_data.Upstream_supported_at_employer\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(survey_data.Contributing_Length, survey_data.Upstream_supported_at_employer)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pd.crosstab(survey_data.World_Region, \n",
" survey_data.Contribute_to_other_OSS)[['this is my first open source project!','1 other','2 or more']]\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Most Important Project\n",
"\n",
"The following plots use offset stacked bar charts, showing the overall rankings of the most important project. They also display the specific distributions of rankings, for each choice."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Most_Important_Proj:\",\n",
" [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"],\n",
" max_value=7,\n",
" sort_x=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Project\",\n",
" color=\"Ranking\",\n",
" fill=\"Ranking\",\n",
" y=\"\",\n",
" title=\"Distribution of Ranking of Most Important Projects\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Mentoring is the most important project, with very few respondents rating it negatively, followed by contributing to documentation. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Most_Important_Proj:\",\n",
" [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"],\n",
" facet_by=[\"Level_of_Contributor\", \".\"],\n",
" max_value=7,\n",
" sort_x=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Project\",\n",
" y=\"\",\n",
" fill=\"Ranking\",\n",
" color=\"Ranking\",\n",
" title=\"Rankings of projects in order of importance (1-7) by Contributor Level\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.9, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"It is reasonable to expect that different roles in Kubernetes may value different projects more highly. The plot above shows that for many issues and role, this is not true. Some items of note are while most groups rate Cleaning up the OWNERS file as their least important, there is a clear trend for Subproject Owners and Reviewers to view this as more important, although a large portion of them still rate this low. Similarly Subproject Owners view mentoring as less important than other groups. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Most_Important_Proj:\",\n",
" [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"],\n",
" facet_by=[\"Interested_in_next_level\", \".\"],\n",
" max_value=7,\n",
" sort_x=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Rankings of projects in order of importance (1-7) by Interest in Next Level\",\n",
" y=\"\",\n",
" x=\"Project\",\n",
" color=\"Ranking\",\n",
" fill=\"Ranking\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.9, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Similarly to contributor roles, the interest in the next level does not appear to be a major factor in the ranking order. Mentoring is still very important to almost all levels of interest, with a minor exception being Subproject Owners. The group that stands out a bit are those who aren't interested in the next level, who value GitHub Management higher than some other projects. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Most_Important_Proj:\",\n",
" [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"],\n",
" facet_by=[\"Contributing_Length\", \".\"],\n",
" max_value=7,\n",
" sort_x=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Rankings of projects in order of importance (1-7) by Length of Contribution\",\n",
" y=\"\",\n",
" x=\"Project\",\n",
" color=\"Ranking\",\n",
" fill=\"Ranking\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.9, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Another interesting take away is that the most important projects do not vary widely across the length of contribution. Once again, Mentoring is the most important project across all demographics."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Analysis of Common Blockers\n",
"\n",
"In this section, we use offset stacked bar charts again. They visualize which blockers cause the most issues for contributors."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"blocker_ratings = list(\n",
" reversed(\n",
" [\n",
" \"A frequent blocker\",\n",
" \"Often a problem\",\n",
" \"Sometimes a problem\",\n",
" \"Rarely a problem\",\n",
" \"Not a problem\",\n",
" ]\n",
" )\n",
")\n",
"\n",
"\n",
"(\n",
" make_likert_chart(survey_data, \"Blocker:\", blocker_ratings)\n",
" + p9.labs(\n",
" title=\"Common Blockers\", color=\"Severity\", fill=\"Severity\", x=\"Blocker\", y=\"\"\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The most frequent blocker across all contributors is debugging test failures, followed by finding issues to work on. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(survey_data,'Blocker:',\n",
" blocker_ratings,\n",
" ['Contributing_Length','.'],\n",
" wrap_facets=True) + \n",
" p9.labs(x='Blocker',\n",
" y='',\n",
" fill='Rating',\n",
" color='Rating', \n",
" title='Common Blockers by Length of Contribution') +\n",
" p9.theme(strip_text_y = p9.element_text(margin={'r':.9,'units':'in'}))\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we look at blockers, by the length of the contributor, we can see that contributors across all lengths have the most issues with debugging test failures. But, finding important issues varies across the groups. Below, we look closer at these two groups."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(survey_data,\n",
" 'Blocker:_Debugging_test_failures',\n",
" 'Contributing_Length',\n",
" blocker_ratings) + \n",
" p9.labs(x='Contributing Length',\n",
" y='',\n",
" fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title='Debugging Test Failures Blocker by Contribution Length') + \n",
" p9.scale_x_discrete(limits=['less than one year', 'one to two years', 'two to three years', '3+ years']) \n",
"\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When it comes to debugging, it is less of an issue for new contributors, most likely because they are not as focused on contributing code yet. After their first year, it becomes a larger issue, but slowly improves over time."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"( \n",
" make_single_likert_chart(survey_data,\n",
" 'Blocker:_Finding_appropriate_issues_to_work_on',\n",
" 'Contributing_Length',\n",
" blocker_ratings) + \n",
" p9.labs(x='Contributing Length',\n",
" y='',\n",
" fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title='Finding Issues to Work on Blocker by Length of Contribution') + \n",
" p9.scale_x_discrete(limits=['less than one year', \n",
" 'one to two years', \n",
" 'two to three years',\n",
" '3+ years'])\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Looking at contributors that have trouble finding issues to work on there is a clear trend that the longer you are a Kubernetes contributor, the less of an issue this becomes, suggesting a continued effort is needed to surface good first issues, and make new contributors aware of them. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(survey_data,'Blocker:',\n",
" blocker_ratings,\n",
" ['Level_of_Contributor','.']) + \n",
" p9.labs(x='Blocker',\n",
" y='',\n",
" fill='Rating',\n",
" color='Rating',\n",
" title='Common Blockers by Contributor Level') +\n",
" p9.theme(strip_text_y = p9.element_text(margin={'r':.9,'units':'in'}))\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we segment the contributors by level, we again see that debugging test failures is the largest blocker among all groups. Most blockers affect contributor levels in similar patterns. The one slight exception, though, is that Subproject Owners are the only cohort to not struggle with finding the right SIG."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(\n",
" survey_data,\n",
" \"Blocker:_Debugging_test_failures\",\n",
" \"Level_of_Contributor\",\n",
" blocker_ratings,\n",
" )\n",
" + p9.labs(\n",
" x=\"Contributor Level\",\n",
" y=\"\",\n",
" fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title=\"Debugging Test Failures Blocker by Level of Contributor\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This in-depth view confirms that debugging test failures is an issue across all contributor levels, but is a larger issue for Subproject Owners and Approvers."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data, \"Blocker:\", blocker_ratings, [\"Interested_in_next_level\", \".\"]\n",
" )\n",
" + p9.labs(\n",
" x=\"Blocker\",\n",
" y=\"\",\n",
" fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title=\"Common Blockers by Interest in Next Level\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.9, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we look at the spread of blockers across interest in the next level, we see that those are interested are the most likely to struggle finding the best issues to work on. In the plot below, this is shown in more detail."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(survey_data,\n",
" 'Blocker:_Finding_appropriate_issues_to_work_on',\n",
" 'Interested_in_next_level',\n",
" blocker_ratings) + \n",
" p9.labs(x='Interest in next level',\n",
" y='Percent',fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title='Finding Issues to Work on Blocker by Interest in the Next Level') \n",
" )\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we look at the spread of blockers across interest in the next level, we see that those are interested are the most likely to struggle finding the best issues to work on. In the plot below, this is shown in more detail."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Because it is expected that the large increase in Twitter users may have affected the results of the survey, we looked at the users who reported using Twitter as their primary source of news, and how they compared to those who didn't."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"survey_data.loc[:, \"Check_for_news:_@kubernetesio_twitter\"] = survey_data[\n",
" \"Check_for_news:_@kubernetesio_twitter\"\n",
"].astype(str)\n",
"\n",
"(\n",
" make_single_likert_chart(\n",
" survey_data,\n",
" \"Blocker:_Debugging_test_failures\",\n",
" \"Check_for_news:_@kubernetesio_twitter\",\n",
" blocker_ratings,\n",
" )\n",
" + p9.labs(\n",
" x=\"Twitter Use\",\n",
" y=\"\",\n",
" fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title=\"Debugging Test Failures Blocker by Twitter Use\",\n",
" )\n",
" + p9.scale_x_discrete(labels=[\"Doesn't Use Twitter\", \"Uses Twitter\"])\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Contributors who use Twitter as their primary source of news, about Kubernetes, are less likely to report struggling with debugging test failures. This is primarily because many Twitter users are newer ones.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(\n",
" survey_data,\n",
" \"Blocker:_Finding_appropriate_issues_to_work_on\",\n",
" \"Check_for_news:_@kubernetesio_twitter\",\n",
" blocker_ratings,\n",
" )\n",
" + p9.labs(\n",
" x=\"Twitter Use\",\n",
" y=\"\",\n",
" fill=\"Rating\",\n",
" color=\"Rating\",\n",
" title=\"Finding Issues Blocker by Twitter Use\",\n",
" )\n",
" + p9.scale_x_discrete(labels=[\"Doesn't Use Twitter\", \"Uses Twitter\"])\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Conversely, those who use Twitter do struggle to find Issues to Work on, again because most contributors who primarily use Twitter for their news tend to be new users."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## First Place News is Seen"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#Convert back to an int after converting to a string for categorical views above\n",
"survey_data.loc[:,'Check_for_news:_@kubernetesio_twitter'] = survey_data[\n",
" 'Check_for_news:_@kubernetesio_twitter'].astype(int)\n",
"\n",
"(\n",
" make_bar_chart(survey_data,'Check_for_news:') + \n",
" p9.labs(title='Where Contributors See News First',\n",
" x='News Source',\n",
" y='Count')\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Most contributors are getting their news primarily from the official dev mailing list."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data, \"Check_for_news:\", [\"Level_of_Contributor\", \".\"], proportional=True\n",
" )\n",
" + p9.labs(\n",
" title=\"Where Contributors See News First by Contributor Level\",\n",
" x=\"News Source\",\n",
" y=\"Proportion\",\n",
" fill=\"News Source\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.9, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Looking across each level of the contributor ladder, most levels display the same patterns, with all groups primarily using the dev mailing list. The second most common source of news is the three Slack channels."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data,\n",
" \"Check_for_news:\",\n",
" [\"Interested_in_next_level\", \".\"],\n",
" proportional=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Where Contributors See News First by Interest in Next Level\",\n",
" x=\"News Source\",\n",
" y=\"Proportion\",\n",
" fill=\"News Source\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.9, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Looking at news sources by interest in next level, we can see that many people who aren't interested rely on the kubernetes-sig-contribex mailing list at a much higher proportion than the other groups. Those who are interested in the next level, either through mentoring or by themselves, tend to use Twitter more. But, this is likely an artifact of the survey being advertised on Twitter."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we look news use by the length of time, we see that compared to other groups, contributors who have been contributing for less than a year rely on the dev mailing list. They replace this with Twitter, and possibly Slack."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Twitter Users\n",
"\n",
"Because of the large increase in responses after the survey was advertised on Twitter, we pay special attention to what type of users list Twitter as their primary source of news."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_bar_chart(\n",
" survey_data[survey_data[\"Level_of_Contributor\"].notnull()],\n",
" \"Check_for_news:_@kubernetesio_twitter\",\n",
" \"Level_of_Contributor\",\n",
" proportionally=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Proportion of Contributors, by contributor level, who get news through Twitter First\",\n",
" y=\"Proportion\",\n",
" x=\"Contributor Level\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Of users who get their news primarily through Twitter, most are members, or those working on becoming members"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_bar_chart(\n",
" survey_data[survey_data[\"Level_of_Contributor\"].notnull()],\n",
" \"Check_for_news:_@kubernetesio_twitter\",\n",
" \"Contributing_Length\",\n",
" proportionally=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Proportion of Contributors, by contributor level, who get news through Twitter First\",\n",
" y=\"Proportion\",\n",
" x=\"Contributor Level\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Many contributors, who use Twitter as their primary news source, have been contributing for less than a year. There is also a large proportion of users who have been contributing for two to three years. It is unclear why this cohort appears to use Twitter in large numbers, compared to users who have been contributing for one to two years. It is also unclear that this cohort appears to use Twitter at a level proportionately greater to even new contributors. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### k/community Use"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_bar_chart(survey_data[survey_data['Level_of_Contributor'].notnull()],\n",
" 'Check_for_news:_kubernetes/community_repo_in_GitHub_(Issues_and/or_PRs)',\n",
" 'Contributing_Length',proportionally=True) +\n",
" p9.scale_x_discrete(limits=['less than one year',\n",
" 'one to two years', \n",
" 'two to three years',\n",
" '3+ years']) +\n",
" p9.labs(x='Length of Contribution',\n",
" y='Proportion',\n",
" title='Proportion of Contributors who Check k/community GitHub first')\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Of the contributors that rely on the k/community GitHub page, there are relatively equal proportions from all contributor length cohorts."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_bar_chart(\n",
" survey_data[survey_data[\"Level_of_Contributor\"].notnull()],\n",
" \"Check_for_news:_kubernetes/community_repo_in_GitHub_(Issues_and/or_PRs)\",\n",
" \"Level_of_Contributor\",\n",
" proportionally=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Contributor Level\",\n",
" y=\"Proportion\",\n",
" title=\"Proportion of Contributors who Check k/community GitHub first\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The distribution of contributors by their levels is an interesting mix, showing that both the highest and lowest levels of the ladder rely on the k/community GitHub. They rely on this more than the middle levels. This may be a way to connect the two communities, especially on issues of Mentoring support."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_bar_chart(\n",
" survey_data[survey_data[\"Level_of_Contributor\"].notnull()],\n",
" \"Check_for_news:_kubernetes/community_repo_in_GitHub_(Issues_and/or_PRs)\",\n",
" \"Level_of_Contributor\",\n",
" proportionally=True,\n",
" facet2=\"Contributing_Length\",\n",
" )\n",
" + p9.labs(\n",
" x=\"Contributor Level\",\n",
" y=\"Proportion\",\n",
" title=\"Proportion of Contributors who Check k/community GitHub first\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 1.15, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The above plot shows the proportion of users in each bucket created by the two-way faceting, and so it can be a bit misleading. For example, 100% of users who have been contributing one to two years and do not know about the existence of the contributor ladder check k/community first. Using the cross-tabulations above, this is only four people. We can see that across all lengths of contributions, both members and those working on membership use the k/community page. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Analysis of Contribution Areas"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(survey_data,'Contribute:') + \n",
" p9.labs(x='Contribution',y='Count',title=\"Areas Contributed To\")\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"As the Kubernetes community moves towards using more repositories to better organize the code, we can see that more\n",
"contributions are being made in other repositories. Most of these are still under the Kuberentes project. Documentation is the second highest area of contributions."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(survey_data.query(\"Contributing_Length != 'less than one year'\"),'Contribute:') + \n",
" p9.labs(x='Contribution',y='Count',title=\"Areas Contributed To (Less than 1 year excluded)\")\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we exclude first year users, the pattern remains mostly the same, with Documentation being replaced as the second most commonly contributed area by code insides k8s/k8s."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data,\n",
" \"Contribute:\",\n",
" facet_by=[\"Level_of_Contributor\", \".\"],\n",
" proportional=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Contribution\", y=\"Count\", title=\"Areas Contributed To\", fill=\"Contribution\"\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.8, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The contribution areas vary by the user level on the ladder, with those working on membership. They are unaware that there is a ladder focusing more on documentation than the other levels. Unsurprisingly, a large proportion of those who do not know there is ladder, have not yet contributed."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data,\n",
" \"Contribute:\",\n",
" facet_by=[\"Contributing_Length\", \".\"],\n",
" proportional=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Contribution\", y=\"Count\", title=\"Areas Contributed To\", fill=\"Contribution\"\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.8, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Looking at contribution areas by length of time contributing, it is clear that the primary area that new contributors work with is documentation. Among no cohort is the largest area of contribution the core k8s/k8s repository, showing the ongoing organization effort is successful. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data,\n",
" \"Contribute:\",\n",
" facet_by=[\"Upstream_supported_at_employer\", \".\"],\n",
" proportional=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Contributions Given Employer Support\",\n",
" x=\"Contribution\",\n",
" y=\"Count\",\n",
" fill=\"Contribution\",\n",
" color=\"Contribution\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 1.15, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Contributors with employer support are more likely to contribute to the main repository, but a healthy portion of those without employer support, or with a complicated support situation, also contribute. The main areas that see less contributions from those without employer support are community development and plugin work."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data.query(\"Contributing_Length != 'less than one year'\"),\n",
" \"Contribute:\",\n",
" facet_by=[\"Upstream_supported_at_employer\", \".\"],\n",
" proportional=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Contributions Given Employer Suppot (Less than 1 year excluded)\",\n",
" x=\"\",\n",
" y=\"Count\",\n",
" fill=\"Contribution\",\n",
" color=\"Contribution\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 1.15, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Removing the new users, and repeating the analysis done above does, not change the overall distributions much."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Resource Use Analysis"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"use_ratings = [\n",
" \"Every Day\",\n",
" \"Several Times a Week\",\n",
" \"Several Times a Month\",\n",
" \"Occasionally\",\n",
" \"Never\",\n",
"]\n",
"use_ratings.reverse()\n",
"\n",
"(\n",
" make_likert_chart(survey_data, \"Use_freq:\", use_ratings, max_is_high=True)\n",
" + p9.labs(\n",
" x=\"Resource\",\n",
" y=\"\",\n",
" color=\"Frequency\",\n",
" fill=\"Frequency\",\n",
" title=\"Resource Use Frequency\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Among all contributors, Slack and GitHub are the most frequently used resources, while dicuss.kubernetes.io and unofficial channels are almost never used. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Use_freq:\",\n",
" use_ratings,\n",
" [\"Contributing_Length\", \".\"],\n",
" max_is_high=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Resource\",\n",
" y=\"\",\n",
" color=\"Frequency\",\n",
" fill=\"Frequency\",\n",
" title=\"Resource Use Frequency\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.8, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When segmenting out the resource use by contribution length, the pattern stays roughly the same across all cohorts. Google Docs, which is used in more in administrative tasks, increases the longer a contributor is involved in the project."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Use_freq:\",\n",
" use_ratings,\n",
" [\"Interested_in_next_level\", \".\"],\n",
" max_is_high=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Resource\",\n",
" y=\"\",\n",
" color=\"Frequency\",\n",
" fill=\"Frequency\",\n",
" title=\"Resource Use Frequency\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.95, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The use of resources, across interest in the next level, shows only one major difference between the groups. Contributors not interested in the next level tend to use GitHub discussions, much less than other groups."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data,\n",
" \"Use_freq:\",\n",
" use_ratings,\n",
" [\"Level_of_Contributor\", \".\"],\n",
" max_is_high=True,\n",
" )\n",
" + p9.labs(\n",
" x=\"Resource\",\n",
" y=\"\",\n",
" color=\"Frequency\",\n",
" fill=\"Frequency\",\n",
" title=\"Resource Use Frequency\",\n",
" )\n",
" + p9.theme(strip_text_y=p9.element_text(margin={\"r\": 0.8, \"units\": \"in\"}))\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The level of the contributor on the ladder shows a large difference between those that use Google Groups and Mailing Lists, as well as those who use Google Docs, etc. The primary users of Zoom meetings tend to be Subproject Owners."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(\n",
" survey_data,\n",
" \"Use_freq:_Google_Groups/Mailing_Lists\",\n",
" \"Level_of_Contributor\",\n",
" use_ratings,\n",
" five_is_high=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Use of Google Groups\",\n",
" x=\"Level of Contributor\",\n",
" y=\"Percent\",\n",
" fill=\"Frequency\",\n",
" color=\"Frequency\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The largest group not using Google Groups are those who do not know that there is a contributor ladder. This suggests that advertising the group may lead to more people knowing about the very existence of a contributor ladder. Or, that the existence of the contributor ladder is discussed more on Google Groups, as compared to other channels."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(\n",
" survey_data,\n",
" \"Use_freq:_Google_Docs/Forms/Sheets,_etc_(meeting_agendas,_etc)\",\n",
" \"Contributing_Length\",\n",
" use_ratings,\n",
" five_is_high=True,\n",
" )\n",
" + p9.labs(\n",
" title=\"Use of Google Drive\",\n",
" x=\"Length of Contributions\",\n",
" y=\"Percent\",\n",
" fill=\"Frequency\",\n",
" color=\"Frequency\",\n",
" )\n",
" + p9.scale_x_discrete(\n",
" limits=[\n",
" \"less than one year\",\n",
" \"one to two years\",\n",
" \"two to three years\",\n",
" \"3+ years\",\n",
" ]\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The use of Google Drive, which is primarily used for administrative tasks, increases the longer a contributor is involved in the project, which is not a surprising outcome."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(survey_data,\n",
" 'Use_freq:_YouTube_recordings_(community_meetings,_SIG/WG_meetings,_etc.)',\n",
" 'Contributing_Length',\n",
" use_ratings,\n",
" five_is_high=True) + \n",
" p9.labs(title='Use of YouTube Recordings',\n",
" x='Length of Contributions',\n",
" y='Percent',\n",
" fill=\"Frequency\",\n",
" color='Frequency') +\n",
" p9.scale_x_discrete(limits=['less than one year', 'one to two years', 'two to three years', '3+ years']) +\n",
" p9.ylim(-0.75,0.75)\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"There is a slight tendency that the longer the contributor is involved in the project, the less they use YouTube. This is a very weak association, though, and hides the fact that most contributors across all lengths do not use YouTube."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_likert_chart(survey_data[survey_data['Interested_in_next_level'].notnull()],\n",
" 'Use_freq:_YouTube_recordings_(community_meetings,_SIG/WG_meetings,_etc.)',\n",
" 'Level_of_Contributor',\n",
" use_ratings,\n",
" five_is_high=True) + \n",
" p9.labs(title='Use of YouTube Recordings',\n",
" x='Interest in next level',\n",
" y='Percent',\n",
" fill=\"Frequency\",\n",
" color='Frequency') +\n",
" p9.ylim(-0.75,0.75)\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The one group that does tend to use the YouTube recording, at least a few times a month, are those working on membership. This suggests that the resources available on YouTube are helpful to a subset of the community."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Use of Help Wanted Labels"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"help_wanted = survey_data[\n",
" survey_data[\n",
" \"Do_you_use_the\\xa0Help_Wanted_and/or_Good_First_Issue_labels_on_issues_you_file_to_find_contributors\"\n",
" ].isna()\n",
" == False\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"help_plot = (\n",
" p9.ggplot(\n",
" help_wanted,\n",
" p9.aes(\n",
" x=\"Do_you_use_the\\xa0Help_Wanted_and/or_Good_First_Issue_labels_on_issues_you_file_to_find_contributors\",\n",
" fill=\"Do_you_use_the\\xa0Help_Wanted_and/or_Good_First_Issue_labels_on_issues_you_file_to_find_contributors\",\n",
" ),\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(\n",
" x=\"Used Label\",\n",
" title=\"Use of Help Wanted and/or Good First Issue Labels\",\n",
" y=\"Count\",\n",
" )\n",
")\n",
"help_plot"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A majority of users, across all demographics, make use of the Help Wanted and Good First Issue labels on GitHub."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" help_plot\n",
" + p9.facet_grid([\"Contributing_Length\", \".\"])\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.2, \"units\": \"in\"}\n",
" )\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The relative proportions of contributors who use the labels does not change with the length of contribution. The one exception being that very few contributors, who have been doing so for 3+ years, don't use the labels."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" help_wanted[help_wanted[\"Interested_in_next_level\"].notnull()],\n",
" p9.aes(\n",
" x=\"Do_you_use_the\\xa0Help_Wanted_and/or_Good_First_Issue_labels_on_issues_you_file_to_find_contributors\",\n",
" fill=\"Do_you_use_the\\xa0Help_Wanted_and/or_Good_First_Issue_labels_on_issues_you_file_to_find_contributors\",\n",
" ),\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(\n",
" x=\"Used Label\",\n",
" title=\"Use of Help Wanted and/or Good First Issue Labels\",\n",
" y=\"Count\",\n",
" )\n",
" + p9.facet_grid(\n",
" [\"Interested_in_next_level\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.2, \"units\": \"in\"}\n",
" )\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The plot above shows that these labels are especially helpful for those who are interested in the next level of the contributor ladder. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" help_plot\n",
" + p9.facet_grid(\n",
" [\"Level_of_Contributor\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" )\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When analyzing the help wanted labels across levels of the contributor ladder, most groups do not have a large majority class, indicating that this is not a variable that predicts the usefulness of the labels."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Interest in Mentoring"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"available_to_mentor = list(survey_data.columns)[-8]\n",
"mentoring_interest = survey_data[survey_data[available_to_mentor].isna() == False]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"mentoring_plot = (\n",
" p9.ggplot(\n",
" mentoring_interest, p9.aes(x=available_to_mentor, fill=available_to_mentor)\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(x=\"Interest\", title=\"Interest in Mentoring GSOC or Outreach\", y=\"Count\")\n",
" + p9.scale_x_discrete(\n",
" labels=lambda labels_list: [\n",
" \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 30))\n",
" for label in labels_list\n",
" ]\n",
" )\n",
")\n",
"mentoring_plot"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Most contributors feel that they do not have enough experience to mentor others, suggesting that more outreach can be done. This can make all but the newest contributors feel confident that they have something to offer."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" mentoring_plot\n",
" + p9.facet_grid([\"Upstream_supported_at_employer\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)))\n",
" + p9.theme(strip_text_y=p9.element_text(angle=0, ha=\"left\")) \n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" )\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A majority of those who already mentor, as well as those who are interested in mentoring, have employers that support their work on Kubernetes. Those who have a complicated relationship with their employer are the only group to whom the most common response was not having enough time, or support."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" mentoring_plot\n",
" + p9.facet_grid(\n",
" [\"Interested_in_next_level\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" )\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"There is no clear pattern between the interest to mentor and interest in the next contributor level. The only exception is that those who want to mentor feel like they don't know enough to do so."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Participation in Meet our Contributors (MoC)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"moc_participation_name = list(survey_data.columns)[-9]\n",
"moc_data = survey_data[survey_data[moc_participation_name].isna() == False]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"moc_plot = (\n",
" p9.ggplot(moc_data, p9.aes(x=moc_participation_name, fill=moc_participation_name))\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(title=\"Watched or Participated in Meet Our Contributors\", x=\"\", y=\"Count\")\n",
")\n",
"moc_plot"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Across all contributors, most do not know about the existence of Meet our Contributors."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" moc_data[moc_data[\"Interested_in_next_level\"].notnull()],\n",
" p9.aes(x=moc_participation_name, fill=moc_participation_name),\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.facet_grid(\n",
" [\"Interested_in_next_level\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.3, \"units\": \"in\"}\n",
" ),\n",
" axis_text_x=p9.element_text(angle=45, ha=\"right\"),\n",
" )\n",
" + p9.labs(\n",
" x=\"Watched MoC\",\n",
" title=\"Interest in next Level of the Contributor Ladder\\n compared to MoC Use\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Among all contributors who are interested in the next level of the ladder, most do still not know about MoC. This suggests a larger outreach would be useful, as most who do watch find it helpful."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" moc_plot\n",
" + p9.facet_grid(\n",
" [\"Level_of_Contributor\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" )\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"As before, across all cohorts of contributor levels, most do not know about MoC. But, for those who do watch it, they find it helpful. The only levels where more contributors know of it, compared to those that don't, are subproject owners and approvers.\n",
"\n",
"In the next series of plots, we analyze only those contributors who do not know about MoC. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" moc_data[moc_data['Interested_in_next_level'].notnull() & \n",
" (moc_data[moc_participation_name] == \"no - didn't know this was a thing\")],\n",
" p9.aes(x='Interested_in_next_level', fill='Interested_in_next_level')) \n",
" + p9.geom_bar(show_legend=False) \n",
" + p9.facet_grid(\n",
" ['Level_of_Contributor','.'],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20))\n",
" ) \n",
" + p9.theme(\n",
" strip_text_y = p9.element_text(\n",
" angle=0,ha='left',margin={\"r\": 1.3, \"units\": \"in\"}\n",
" ),\n",
" axis_text_x = p9.element_text(angle=45,ha='right')\n",
" ) \n",
" + p9.labs(\n",
" x = 'Interested in Next Level',\n",
" y = \"Count\", \n",
" title = \"Contributors who don't know about MoC\")\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Across all levels of the contributor ladder, many who are interested in the next level do not know about the existence of MoC. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" moc_data[\n",
" (moc_data[moc_participation_name] == \"no - didn't know this was a thing\")\n",
" ],\n",
" p9.aes(x=\"Contributing_Length\", fill=\"Contributing_Length\"),\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.facet_grid(\n",
" [\"Level_of_Contributor\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" ),\n",
" axis_text_x=p9.element_text(angle=45, ha=\"right\"),\n",
" )\n",
" + p9.labs(\n",
" x=\"Length of Contribution\",\n",
" y=\"Count\",\n",
" title=\"Contributors who don't know about MoC\",\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The plot above shows that a majority of those unaware, have not been contributors for very long. This is regardless of their level on the contributor ladder."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" moc_data[\n",
" moc_data[\"Interested_in_next_level\"].notnull()\n",
" & (moc_data[moc_participation_name] == \"yes - it was helpful\")\n",
" ],\n",
" p9.aes(x=\"Interested_in_next_level\", fill=\"Interested_in_next_level\"),\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.facet_grid(\n",
" [\"Level_of_Contributor\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" ),\n",
" axis_text_x=p9.element_text(angle=45, ha=\"right\"),\n",
" )\n",
" + p9.labs(\n",
" x=\"Interested in Next Level\",\n",
" y=\"Count\",\n",
" title=\"Contributors who watched or participated in \\n MoC and found it helpful\",\n",
" )\n",
" + p9.ylim(0, 15) # Make the same scale as those who don't find it helpful\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The plot above shows that MoC is found useful by those who watch it. This is the case for those who have either attained the highest level on the ladder, or are interested in the next level. This holds true across all levels of the ladder. This suggests that MoC should not only cover information helpful to those trying to become members, but also those who wish to become approvers, reviewers, and subproject owners. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(\n",
" moc_data[(moc_data[moc_participation_name] == \"yes - it was helpful\")],\n",
" p9.aes(x=\"Contributing_Length\", fill=\"Contributing_Length\"),\n",
" )\n",
" + p9.geom_bar(show_legend=False)\n",
" + p9.facet_grid(\n",
" [\"Level_of_Contributor\", \".\"],\n",
" labeller=lambda label: \"\\n\".join(wrap(label.replace(\"/\", \"/ \").strip(), 20)),\n",
" )\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(\n",
" angle=0, ha=\"left\", margin={\"r\": 1.34, \"units\": \"in\"}\n",
" ),\n",
" axis_text_x=p9.element_text(angle=45, ha=\"right\"),\n",
" )\n",
" + p9.labs(\n",
" x=\"Length of Contribution\",\n",
" y=\"Count\",\n",
" title=\"Contributors who watched or participated in \\n MoC and found it helpful\",\n",
" )\n",
" + p9.ylim(0, 25) # Make the same scale as those who don't find it helpful\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The majority of those who found MoC useful are contributors who are working towards their membership. This is suggesting that while most of the material might be geared towards them, the previous plot shows the importance of striking a balance between the two."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Ways to Increase Attendance at Thursday Meetings"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(survey_data, \"Would_attend_if:\")\n",
" + p9.labs(x=\"Change\", y=\"Count\", title=\"Would attend if\")\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The primary reason contributors don't attend Thursday meetings is that they have too many meetings in their personal lives. As this is not something the Kubernetes community can control, we suggest they focus on the second most common suggestion: distributing a full agenda prior to the meeting. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data,\n",
" \"Would_attend_if:\",\n",
" [\".\", \"Level_of_Contributor\"],\n",
" proportional=True,\n",
" )\n",
" + p9.labs(x=\"Change\", y=\"Count\", title=\"Would attend if\", fill=\"Change\")\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(angle=0, ha=\"left\", margin={\"r\": 1, \"units\": \"in\"})\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Across contributor levels, the dominant reason for their attendance would be \"fewer meetings in my personal schedule\". What is interesting is that for those who are not yet members, it is less of a dominating reason than other cohorts. These contributors give almost equal weight to many different changes, some of which may be appropriate to the Thursday meeting, but some of which may indicate the need for new types of outreach programming."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_bar_chart(\n",
" survey_data, \"Would_attend_if:\", [\".\", \"Contributing_Length\"], proportional=True\n",
" )\n",
" + p9.labs(x=\"Change\", y=\"Count\", title=\"Would attend if\", fill='Reason')\n",
" + p9.theme(\n",
" strip_text_y=p9.element_text(angle=0, ha=\"left\", margin={\"r\": 1, \"units\": \"in\"})\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Segmenting the contributors, by their length of contribution, does not reveal any patterns that are widely different than when looking at all the contributors as a whole."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_single_bar_chart(survey_data[survey_data['World_Region'].notnull()],\n",
" 'Would_attend_if:_Different_timeslot_for_the_meeting', \n",
" 'World_Region',\n",
" proportionally=True\n",
" ) + \n",
" p9.labs(x='Change',\n",
" y='Count',\n",
" title=\"Would attend if\")\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When looking at the distribution of contributors, who would attend the meetings if they were held at a different time, we can see a large impact that location has. While the number of contributors located in Oceania and Africa is small, it makes forming significant conclusions more difficult. There are many contributors from Asia, indicating that the timing of the meetings is a major barrier to a large portion. This is simply because of the timezones they live in."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Reasons for Not Attending Summits"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"unattendance_str = \"If_you_haven't_been_able_to_attend_a_previous_summit,_was_there_a_primary_reason_why_(if_multiple,_list_the_leading_reason)\"\n",
"unattendance_data = survey_data.dropna(subset=[unattendance_str])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"reason_for_not_going = (\n",
" p9.ggplot(unattendance_data, p9.aes(x=unattendance_str))\n",
" + p9.geom_bar()\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(\n",
" title=\"Reasons for not attending summits\",\n",
" y=\"Number of Contributors\",\n",
" x=\"Reason\",\n",
" )\n",
")\n",
"reason_for_not_going"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The largest reason for not attending the summits is that contributors feel they do not have enough funding to attend."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"unattendance_contrib = (\n",
" unattendance_data.groupby([\"Contributing_Length\", unattendance_str])\n",
" .count()[\"Respondent_ID\"]\n",
" .reset_index()\n",
" .merge(\n",
" unattendance_data.groupby([\"Contributing_Length\"])\n",
" .count()[\"Respondent_ID\"]\n",
" .reset_index(),\n",
" on=\"Contributing_Length\",\n",
" )\n",
")\n",
"unattendance_contrib = unattendance_contrib.assign(\n",
" percent=unattendance_contrib.Respondent_ID_x / unattendance_contrib.Respondent_ID_y\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" p9.ggplot(unattendance_contrib,\n",
" p9.aes(x=unattendance_str,y='percent',fill='Contributing_Length')) +\n",
" p9.geom_bar(stat='identity',position='dodge') +\n",
" p9.theme(axis_text_x = p9.element_text(angle=45,ha='right')) + \n",
" p9.labs(title=\"Reasons for not attending summits\",\n",
" y = \"Proportion of Contributors\",\n",
" x= 'Reason',\n",
" fill=\"Contributing Length\") \n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we look at the reasons for not attending the summits dependent the length of time a contributor has been involved with the project, we see that in addition to lacking funding, the longer tenured contributors tend to help at other events co-located with KubeCon even during the summits."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"unattendance_level = unattendance_data.groupby(['Level_of_Contributor',unattendance_str]).count()['Respondent_ID'].reset_index().merge(unattendance_data.groupby(['Level_of_Contributor']).count()['Respondent_ID'].reset_index(), on = 'Level_of_Contributor')\n",
"unattendance_level = unattendance_level.assign(percent = unattendance_level.Respondent_ID_x/unattendance_level.Respondent_ID_y)\n",
"\n",
"(\n",
" p9.ggplot(unattendance_level,\n",
" p9.aes(x=unattendance_str,y='percent',fill='Level_of_Contributor')) +\n",
" p9.geom_bar(stat='identity',position=p9.position_dodge(preserve='single')) +\n",
" p9.theme(axis_text_x = p9.element_text(angle=45,ha='right')) + \n",
" p9.labs(title=\"Reasons for not attending summits\",\n",
" y = \"Number of Contributors\",\n",
" x= 'Reason',\n",
" fill= 'Level of Contributor') \n",
")\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"As with above, the higher up the ladder one is, the more likely the are to be helping out at another event. Interestingly, while approvers are higher on the ladder than reviewers, they are less likely to be attending KubeCon, as well as the summits."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"unattendance_support = (\n",
" unattendance_data.groupby([\"Upstream_supported_at_employer\", unattendance_str])\n",
" .count()[\"Respondent_ID\"]\n",
" .reset_index()\n",
" .merge(\n",
" unattendance_data.groupby([\"Upstream_supported_at_employer\"])\n",
" .count()[\"Respondent_ID\"]\n",
" .reset_index(),\n",
" on=\"Upstream_supported_at_employer\",\n",
" )\n",
")\n",
"unattendance_support = unattendance_support.assign(\n",
" percent=unattendance_support.Respondent_ID_x / unattendance_support.Respondent_ID_y\n",
")\n",
"\n",
"(\n",
" p9.ggplot(\n",
" unattendance_support,\n",
" p9.aes(x=unattendance_str, y=\"percent\", fill=\"Upstream_supported_at_employer\"),\n",
" )\n",
" + p9.geom_bar(stat=\"identity\", position=p9.position_dodge(preserve=\"single\"))\n",
" + p9.theme(axis_text_x=p9.element_text(angle=45, ha=\"right\"))\n",
" + p9.labs(\n",
" title=\"Reasons for not attending summits\",\n",
" y=\"Number of Contributors\",\n",
" x=\"Reason\",\n",
" fill='Employer Support'\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Unsurprisingly, funding is a greater barrier to attendance to those who only work on Kubernetes on their own time, but is still a concern for about a third of those with some support from their employer."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Agreement with Statements"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"agree_ratings = [\"Strongly Disgree\", \"Disagree\", \"Neutral\", \"Agree\", \"Strongly Agree\"]\n",
"(\n",
" make_likert_chart(survey_data, \"Agree:\", agree_ratings, max_is_high=True)\n",
" + p9.labs(x=\"Statement\", y=\"Number of Responses\", fill=\"Rating\", color=\"Rating\")\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Overall, the plot above displays the proportions one would hope to see. Many contributors are confident in their ability to understand continuous integration, and the related error messages enough to debug their code, while not feeling overburdened by test failures or notifications."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"(\n",
" make_likert_chart(\n",
" survey_data[survey_data[\"Blocker:_Debugging_test_failures\"] > 3],\n",
" \"Agree:\",\n",
" agree_ratings,\n",
" max_is_high=True,\n",
" )\n",
" + p9.labs(x=\"Statement\", y=\"Number of Responses\", fill=\"Rating\", color=\"Rating\")\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For those contributors who reported that debugging test failures is often or frequently a blocker, we see that the numbers are lower for those who understand CI and it's error messages in a broken PR. This is suggesting that if these areas were improved, less contributors would find debugging test failures to be a major blocker. On the other hand, it may suggest that there is no need to improve these tools, just more of an effort to educate about them. This is an area that could be investigated in future surveys, to best determine how to make debugging less of a blocker."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
|