CoolFace
Datasetpublic

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.

sourceHugging Facecc0-1.0updated 2d agoView on Hugging Face
0likes153downloads
Dataset Card

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

ColumnTypeDescriptionSampleNull %
wikidata_idstrWikidata entity ID (e.g. 'Q1029'); resolves to https://www.wikidata.org/wiki/Q1029 — links to the astronaut's full biography, mission list, and nationality dataQ773490.0%
namestringFull legal name as recorded in Wikidata (English transliteration for non-Latin scripts)Abdul Ahad Mohmand0.0%
birth_datestrDate of birth in ISO 8601 format (YYYY-MM-DD); null for living persons who have not disclosed their birth date or for historical records with unresolvable uncertainty1959-01-012.0%
death_datestrDate of death in ISO 8601 format (YYYY-MM-DD); null for living astronauts2026-06-2174.2%
sexstringRecorded biological sex; values: 'male', 'female'; null if not recorded in Wikidatamale0.0%
nationalitystringCountry of citizenship at the time of primary spaceflight career (e.g. 'United States', 'Russia'); uses full English country name; may differ from country of birthDemocratic Republic of Afghanistan0.1%
employersstringSpace agencies or contractors that employed the astronaut, semicolon-separated (e.g. 'NASA; Boeing'); null if no employer is recorded in WikidataJapan Aerospace Exploration Agency; N...46.5%
num_flightsInt64Number of distinct spaceflights completed (each separate launch counts as one flight); 0 if the astronaut trained but never flew00.0%
time_in_space_minfloat64Cumulative time spent in space across all missions, in minutes; null for astronauts with no recorded flights12746.021.2%
birth_yearInt64Integer year extracted from birth_date; enables age-group analysis when full date is unavailable; null only if birth date is entirely unknown19592.0%
time_in_space_hoursFloat64Cumulative time in space in decimal hours, derived from timeinspace_min (divided by 60, rounded to 1 decimal); null for astronauts with no recorded flights212.421.2%

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

python
from datasets import load_dataset

ds = load_dataset("juliensimon/astronaut-database", split="train")
df = ds.to_pandas()
python
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

bibtex
@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/}
}

License

CC0-1.0