← All datasets

Stack Overflow Developer Survey

Who writes code, in which languages, for how much, how do developers feel about AI, and how is all this changing?

Rows (2024)
65,437
Columns (2024)
114
Years
2011 → today
Format
One zip per year

The data

Every year Stack Overflow asks developers around the world about their work: their country, age, job, experience, the languages and tools they use and want to learn, their salary and, in recent years, what they think about AI. In 2024 alone, 65,437 people answered.

You choose the time frame. Work on one year for a deep look, or download two or three years and compare them: which languages are rising, did remote work grow or shrink, did AI use change? You can also stack the years in one table and follow a question over time.

It's data about people like you: future developers and data people. Egypt is in it too (262 answers in 2024).

Download

Official results page (all years) ↗Kaggle copy of 2011–2024 ↗Kaggle copy of 2024 only ↗

About the format

  • On the official page, each year has its own full data set (CSV) download: a zip with survey_results_public.csv (the answers; ~160 MB for 2024), survey_results_schema.csv (the full text of every question) and a PDF.
  • Read the schema file of each year. Questions are added, removed and reworded, and column names change between years. Find the columns that mean the same thing and give them one name before you put years together.
  • To combine years: add a year column to each table, keep only the columns you need (with the same names), then pd.concat. Compare only questions that were asked in every year you use.
  • Multi-answer questions keep all answers in one cell, separated by ;, e.g. "Bash/Shell;Go;HTML/CSS;Java". Use .str.split(";") and .explode() to count them.
  • In some Kaggle copies, apostrophes became a strange character ("Bachelor�s").
import pandas as pd

s23 = pd.read_csv("2023/survey_results_public.csv", low_memory=False).assign(year=2023)
s24 = pd.read_csv("2024/survey_results_public.csv", low_memory=False).assign(year=2024)

common = s23.columns.intersection(s24.columns)      # the columns both years share (check the schema too!)
both = pd.concat([s23[common], s24[common]], ignore_index=True)
both.groupby("year").size()

Main columns

ColumnWhat it holds
MainBranch, EmploymentDeveloper by profession, student, hobbyist…; full-time, freelance…
Country, Age, EdLevelWho they are
YearsCode, YearsCodeProExperience (text, with "Less than 1 year")
DevType, RemoteWork, OrgSizeJob role, remote / hybrid / in-person, company size
LanguageHaveWorkedWith / WantToWorkWith / AdmiredLanguages used, wanted, and loved (multi-answer, 2024 names)
ConvertedCompYearlyYearly salary converted to US dollars (2024 name)
AISelect, AISent, AIThreatAI use and opinions (recent years only)

Watch out for

These are hints, not instructions. Check each one in the data, decide what to do, and explain your choice in the notebook.
  • Most questions were optional: in 2024 only about a third of the people gave a salary.
  • Salaries go from $1 to millions of dollars a year. Which ones can you trust?
  • Compare salaries of comparable people (full-time professional developers), not students with managers.
  • YearsCodePro is text: numbers plus "Less than 1 year" and "More than 50 years".
  • Country names are long ("United Kingdom of Great Britain and Northern Ireland"), and may be spelled differently in different years.
  • Comparing years: the same question can have new answer options or a new wording. Is a change in the data a real change, or a change in the question?
  • Different people answer each year, and the number of answers changes. Compare shares (%), not counts.
  • Salaries in dollars say nothing about cost of living, and inflation changes them from year to year.
  • Who answers a Stack Overflow survey? Are they all developers in the world?

Questions to explore

Who

  1. Where do the respondents come from? How old are they, and what jobs do they do?

Languages

  1. Which languages are used most? Which ones do people want to learn next?
  2. Which languages do their users love, and which are used only because people have to?

Salary

  1. What decides a developer's salary: country, experience, role, remote work?
  2. Do remote developers earn more? Even in the same country?

AI

  1. Who uses AI tools: young or old, junior or senior? Do developers see AI as a threat?

Over time (if you take several years)

  1. Which languages and tools are rising or falling?
  2. Did remote work grow or shrink after 2020?
  3. Did AI use and trust change from one year to the next?
  4. Did salaries move, for the same role and experience?

Egypt

  1. How do Egyptian developers compare with the world: languages, AI use, experience? And over the years?

Ideas for the app

  • A salary explorer by country, experience and role.
  • A languages page: used vs wanted vs loved.
  • An Egypt vs the world page.
  • With several years: a year selector, or a trends page with one line per language or tool.
← All datasets