Introduction

Kaggle is one of the best-known platforms for data analysts and data scientists, with more than 10 million registered users. Beyond that, Kaggle offers a wide range of features, such as:

  • Creating articles (notebooks) that contain executable code as well as its output (charts, statistical results, etc.)
  • Communication between users through discussion forums for solving questions
  • A rich body of educational material and courses, most of which are based on Python and its libraries, covering visualisation, data analysis, machine learning and deep learning
  • Numerous machine-learning and deep-learning competitions that any user can enter

It is worth mentioning that there are other similar platforms, but none of them has a comparable user base, nor does it offer a similar range of features. A notable alternative is DrivenData, mainly for the competitions side. However, DrivenData does not offer the ability to publish notebooks and its community is significantly smaller.

The Kaggle Machine Learning & Data Science Survey is an annual survey conducted by the platform itself. Users are asked to answer questions about demographics, the analysis tools they use, work characteristics and more. The data is then published and users analyse it as part of an open competition. In this article I carry out an analysis of the 2021 survey data, comparing the characteristics of Greek users of the platform with those of the rest of the world.

Prerequisites

Importing Libraries

For this analysis I need to import and transform the data, so the {tidyverse} package suite is essential, since I will use functionality from packages such as {readr}, {dplyr} and {tidyr}. The huge volume of data gives us rich analysis options and allows us to visualise a variety of findings through the {highcharter} package. Finally, for variables with many values (e.g. countries), it may be necessary to present the data in interactive tables via the {reactable} or {reactablefmtr} packages.

Importing Data

Kaggle provides the dataset in CSV format, so the read_csv command from the {readr} package will be used. The dataset is stored under the name kaggle_2021. The first row of the file contains the wording of each question, which I remove to make the analysis easier.

Data Recoding

Before starting the analysis, I need to carry out some preparatory steps. Since the main purpose is to compare characteristics between Greek and other users, we need to distinguish the data on that basis. There are two ways:

  • Creating a new variable and grouping the data
  • Filtering and splitting the dataset into two subsets (Greek and other users)

Either way, I will be able to make the necessary comparison.

Kaggle’s Community

One of the first things I noticed when I signed up on Kaggle was the remarkable geographic diversity of its community. People from dozens of countries, gathered on a single website, sharing the same passion for programming, analysis and data science. Something like Facebook but for Statistics. To highlight this feature, we use an interactive table via the {reactable} package. From the table below I note that users from India make up the largest community, representing about a quarter of the total, followed by users from the USA. Greek users of the platform are relatively few, with a participation rate of 0.39% of the total users in this survey.

Table 1 Absolute number and share of survey participants by country.
India 7,434 28.62
United States 2,650 10.20
Other 1,339 5.16
Japan 921 3.55
China 814 3.13
Brazil 751 2.89
Russia 742 2.86
Nigeria 702 2.70
United Kingdom 550 2.12
Pakistan 530 2.04
Egypt 482 1.86
Germany 470 1.81
Spain 454 1.75
Indonesia 444 1.71
Turkey 416 1.60
France 401 1.54
South Korea 359 1.38
Taiwan 334 1.29
Canada 331 1.27
Bangladesh 317 1.22
Italy 311 1.20
Mexico 279 1.07
Vietnam 277 1.07
Australia 264 1.02
Kenya 248 0.95
Colombia 225 0.87
Poland 219 0.84
Iran 195 0.75
Ukraine 186 0.72
Argentina 182 0.70
Singapore 182 0.70
Malaysia 156 0.60
Netherlands 153 0.59
South Africa 146 0.56
Morocco 140 0.54
Israel 138 0.53
Thailand 123 0.47
Portugal 119 0.46
Peru 117 0.45
United Arab Emirates 111 0.43
Tunisia 109 0.42
Philippines 108 0.42
Sri Lanka 106 0.41
Chile 102 0.39
Greece 102 0.39
Ghana 99 0.38
Saudi Arabia 89 0.34
Ireland 84 0.32
Sweden 81 0.31
Hong Kong SAR China 79 0.30
Nepal 75 0.29
Switzerland 71 0.27
Belgium 65 0.25
Czechia 63 0.24
Romania 61 0.23
Austria 51 0.20
Belarus 51 0.20
Ecuador 50 0.19
Denmark 48 0.18
Uganda 47 0.18
Kazakhstan 45 0.17
Norway 45 0.17
Algeria 44 0.17
Ethiopia 43 0.17
Iraq 43 0.17

An important note

It is important to stress that the data, and by extension the results, come exclusively from the annual survey conducted by the Kaggle platform. They do not reflect the overall picture of the data-science community at a global level. Also, participation in the survey is optional, so we are examining the characteristics only of those who chose to take part. This may introduce self-selection bias.

Women’s Participation in the Field

Globally, a significant under-representation of women in the labour market has persisted over time. According to the World Bank, only 5 in 10 women are employed, in contrast to men, where the corresponding ratio approaches 7 in 10. Here we focus specifically on the data-science field. Does our field follow the same pattern of exclusion? The answer is yes, but with strong variation by country.

Greece has a relatively disappointing performance on this particular indicator, coming in 38th place with a rate of 15.7%, while the average participation is 17.7%.

Figure 1 Women's participation in the data-science community Women are under-represented; Greece ranks low on this measure.
Show the data
Category Women % (%)
Tunisia 38.5
Sri Lanka 34.0
Saudi Arabia 30.3
Malaysia 27.6
Algeria 27.3
Iran 26.7
Egypt 26.3
Romania 26.2
United Arab Emirates 25.2
Portugal 24.4
Taiwan 24.3
Philippines 24.1
United States 22.9
India 22.3
Norway 22.2
Indonesia 21.6
Kenya 21.4
Singapore 20.9
United Kingdom 20.5
South Korea 20.1
Thailand 19.5
Canada 19.3
Morocco 19.3
South Africa 19.2
Uganda 19.1
Turkey 19.0
Vietnam 18.8
Iraq 18.6
Switzerland 18.3
Hong Kong SAR China 17.7
Czechia 17.5
Israel 17.4
Germany 17.2
France 16.7
Netherlands 16.3
Ukraine 16.1
Ecuador 16.0
Greece 15.7
Austria 15.7
Kazakhstan 15.6
Pakistan 15.3
Nigeria 15.2
Australia 14.4
Russia 14.0
Poland 13.7
Bangladesh 13.6
Sweden 13.6
Argentina 13.2
China 13.0
Spain 12.6
Denmark 12.5
Belgium 12.3
Mexico 11.8
Belarus 11.8
Colombia 11.1
Brazil 10.8
Italy 9.6
Ireland 9.5
Nepal 9.3
Chile 8.8
Ghana 8.1
Japan 7.4
Ethiopia 4.7
Peru 4.3

This inequality in women’s participation is, beyond being sad, also fundamentally problematic, since the lack of diversity limits perspectives and innovation in any field. Fortunately, various communities have recognised the issue and are actively working to empower women’s participation. The group best known to me, as an R user, is the R-ladies community, with chapters in various countries. There is a corresponding group for Python, PyLadies.

Age Distribution

The community of Greek users consists of relatively older people compared with the rest of the world. The most populous age group in Greece is 25–29, while there is also a notable share of people in their 40s. By contrast, the population of other users is particularly youthful, with the overwhelming majority concentrated in the younger age groups. Cumulatively, the three youngest age groups represent about 60% of total users worldwide, versus 42% for the Greek community.

Figure 2 Age distribution of users by origin The Greek community skews older than the rest of the world.
Show the data
Category Greece (%) Rest of the world (%)
18-21 4.9 18.9
22-24 13.7 18.1
25-29 24.5 19.0
30-34 14.7 13.2
35-39 10.8 9.6
40-44 8.8 7.3
45-49 12.7 5.3
50-54 4.9 3.7
55+ 4.9 4.9

This difference can be interpreted as an indication that the data-science field has not yet matured in Greece to the same degree. Use of the platform appears to be limited to people over 25, who most likely already hold a degree and some kind of work experience.

Comparing the two most widespread programming languages in terms of their use by age group, I observe that in both languages the younger ages (under 29) make up the majority of users. I also observe that Python has a greater concentration of users in the ages up to 29, while R has a significant presence of older users. This was expected, since R has always been intended for statistical analysis.

Figure 3 Age distribution of users by programming language R has a noticeably larger share of older users.
Show the data
Category R (%) Python (%)
18-21 12.6 19.6
22-24 14.5 19.0
25-29 16.4 19.2
30-34 12.6 13.0
35-39 11.3 9.2
40-44 9.9 7.1
45-49 7.1 5.1
50-54 6.0 3.3
55+ 9.6 4.4

Educational Background

Another finding worth investigating is the higher level of education that Greek users have compared with the rest of the platform’s users. In the previous section we observed an age distribution suggesting that the participation of older ages is greater than that of the other users. This impression appears to be confirmed, since holders of a Master’s or Doctoral degree are proportionally clearly more numerous. Approximately 78% of Greek users hold a Master’s degree or higher, while the corresponding figure for the rest of the user group is 50%.

Figure 4 Educational background of users About 78% of Greek users hold a Master's or PhD, versus ~50% of the rest of the world.
Show the data
Category Greece (%) Rest of the world (%)
Bachelor 18.6 38.2
Master 57.8 38.9
PhD 20.6 12.1

Comparing the educational background by programming language, R users show a proportionally higher level of studies than Python users, which is consistent with their older age distribution.

Figure 5 Educational background by language
Show the data
Category R (%) Python (%)
Bachelor 28.6 38.8
Master 41.7 39.2
PhD 20.6 11.9

Employment

So far I know that the small community of Greek data scientists consists mainly of older and more highly specialised individuals. But does this translate into years of professional experience in the field?

An interesting finding is that users with up to 1 year of work experience represent 1/5 of Greek users and 1/4 of the platform’s users worldwide. It is also confirmed that Greek users proportionally have more work experience compared with the rest of the users.

Figure 6 Years of experience by origin Greek users have proportionally more work experience.
Show the data
Category Greece (%) Rest of the world (%)
0 2.0 4.0
<1 17.6 22.7
1-3 22.5 30.3
3-5 13.7 15.6
5-10 20.6 11.9
10-20 13.7 8.3
20+ 9.8 7.2

Despite the extensive experience and the greater specialisation that results from higher studies, Greek data scientists work in relatively small companies and organisations. Approximately 58% of Greeks reported working in businesses of up to 250 employees, versus 47% for foreign users.

Figure 7 Company size by origin Greek users work proportionally at smaller companies.
Show the data
Category Greece (%) Rest of the world (%)
0-49 35.5 31.1
50-249 23.7 15.8
250-999 11.8 13.3
1000-9999 15.8 18.8
10000+ 13.2 21.1

The same pattern of smaller organisations is also reflected in pay: Greek users are concentrated mainly in the lower-to-middle bands of annual earnings.

Figure 8 Compensation by origin Annual compensation (USD) by bracket.
Show the data
Category Greece (%) Rest of the world (%)
0-9,999 23.0 45.6
10,000-19,999 32.4 9.8
20,000-29,999 14.9 6.8
30,000-49,999 6.8 9.3
50,000-69,999 6.8 8.1
70,000-99,000 8.1 7.8
100,000-200,000 6.8 9.7
>200,000 1.4 2.8

The most common jobs in the Greek Kaggle community are Data Analyst, Data Scientist and Student. The distribution is similar to the international one, albeit with some differences in the percentages.

Figure 9 Most common roles in Greece
Show the data
Category Share (%)
Data Scientist 14.7
Research Scientist 13.7
Student 13.7
Data Analyst 10.8
Not employed 9.8
Other 7.8
Figure 10 Most common roles worldwide
Show the data
Category Share (%)
Student 26.2
Data Scientist 13.9
Software Engineer 9.4
Other 9.2
Data Analyst 8.9
Not employed 7.6

Our Toolkit

The language that dominates Data Science in both groups is Python. The only difference between Greek and foreign users is perhaps the proportionally more significant R user base. In any case, about eight in ten have chosen Python as their main language, followed by R and finally SQL.

Figure 11 Programming languages Python dominates; R has a proportionally stronger presence in the Greek community.
Show the data
Category Greece (%) Rest of the world (%)
Python 83.9 87.9
R 10.8 6.3
SQL 5.4 5.8

Beyond software, the equipment the community uses is also of interest. The overwhelming majority rely on a laptop, with desktop computers and cloud platforms following.

Figure 12 What equipment is used Most data scientists use a laptop.
Show the data
From To Users
Platform users Laptop 16,179
Platform users Desktop 4,879
Platform users Cloud platform 2,322
Platform users Deep-learning workstation 810
Platform users None 259
Platform users Other 171

Epilogue

The findings of the analysis are ambiguous. On the one hand, Greece does not lack human capital and people who are knowledgeable in the field of Data Science. It consists of individuals with a high degree of specialisation and work experience. On the other hand, there is a pattern that is worrying, and that is the age distribution. This may indicate low penetration of the field, combined with low interest from younger age groups, and that could be problematic for the long-term growth of the field in our country.

Finally, I would like to clarify what I mean in the article in order to avoid misinterpretations. In several distributions, figures are reported that are favourable to Greece. This in no way means that Greeks are better at Data Science, and such a conclusion would be mistaken. I am comparing demographic characteristics of users from one platform’s survey. Thus the distribution probably reveals the low participation and penetration of data science in our country, indicated both by the low number of users and by their structure. In reality the trend is worrying, since the distributions are not accompanied by a corresponding share of younger ages with an interest in the field.

Acknowledgements

Dataset based on the 2021 Kaggle Machine Learning & Data Science Survey.

Image by Christina Smith from Pixabay.