juliensimon/astronaut-database
Astronaut Database Credit: NASA/GSFC/Suomi NPP Part of a dataset collection on Hugging Face. Dataset description Complete database of every person who has traveled to space, sourced from Wikidata. Since Yuri Gagarin's flight aboard Vostok 1 in April 1961, fewer than 700 individuals have crossed the Karman line (100 km altitude). This dataset records every one of them, from the Mercury Seven and Voskhod cosmonauts through Space Shuttle crews, ISS… See the full description on the dataset page: https://huggingface.co/datasets/juliensimon/astronaut-database.
Astronaut Database
<div align="center"> <img src="banner.jpg" alt="Blue Marble — Earth from space" width="400"> <p><em>Credit: NASA/GSFC/Suomi NPP</em></p> </div>
Part of a [dataset collection](https://huggingface.co/collections/juliensimon/space-essentials-69cbafd7ea046a10eff11405) on Hugging Face.
Dataset description
Complete database of every person who has traveled to space, sourced from Wikidata.
Since Yuri Gagarin's flight aboard Vostok 1 in April 1961, fewer than 700 individuals have crossed the Karman line (100 km altitude). This dataset records every one of them, from the Mercury Seven and Voskhod cosmonauts through Space Shuttle crews, ISS expeditions, and the recent wave of commercial astronauts aboard Crew Dragon and New Shepard.
The dataset includes birth/death dates, sex, nationality, employer history (space agencies and contractors), number of spaceflights, and total time spent in space. This enables demographic analysis of astronaut corps, diversity-in-STEM research, and historical studies of human spaceflight programs.
Sourced from Wikidata's structured knowledge base (property P106=Q11631 for occupation:astronaut), which is maintained by the WikiProject Spaceflight community and updated as new flights occur.
This dataset is suitable for tabular classification tasks.
Schema
Quick stats
- 867 astronauts from 60 countries
- 735 male, 132 female
- 0 with recorded spaceflights
- Most flights: Abdul Ahad Mohmand (0)
- Top nationalities: United States (449), Soviet Union (97), Russia (86), People's Republic of China (35), Japan (17)
Usage
from datasets import load_dataset
ds = load_dataset("juliensimon/astronaut-database", split="train")
df = ds.to_pandas()from datasets import load_dataset
ds = load_dataset("juliensimon/astronaut-database", split="train")
df = ds.to_pandas()
# Astronauts by nationality
print(df["nationality"].value_counts().head(10))
# Female astronauts
female = df[df["sex"] == "female"]
print(f"{len(female):,} female astronauts")
# Most time in space
top_time = df.nlargest(10, "time_in_space_hours")[["name", "nationality", "time_in_space_hours"]]
print(top_time)
# NASA astronauts
nasa = df[df["employers"].str.contains("NASA", na=False)]
print(f"{len(nasa):,} NASA-affiliated astronauts")
# Flight count distribution
import matplotlib.pyplot as plt
df["num_flights"].value_counts().sort_index().plot(kind="bar")
plt.xlabel("Number of Flights")
plt.ylabel("Astronauts")
plt.title("Spaceflight Count Distribution")
plt.show()Data source
https://www.wikidata.org/
Related datasets
If you find this dataset useful, please consider giving it a like on Hugging Face. It helps others discover it.
About the author
Created by Julien Simon — AI Operating Partner at Fortino Capital. Part of the Space Datasets collection.
Citation
@dataset{astronaut_database,
title = {Astronaut Database},
author = {Simon, Julien},
year = {2026},
url = {https://huggingface.co/datasets/juliensimon/astronaut-database},
publisher = {Hugging Face},
note = {Derived from Wikidata contributors, https://www.wikidata.org/}
}