Skip to content

CSVs and parsers for the Social Security Administration's historical baby name data.

Notifications You must be signed in to change notification settings

jsvine/babynames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baby Name Data & Data-Fetchers

This repo contains CSVs of the Social Security Administration's baby-name data, as well as Python scripts for updating this data.

The Data

The Scripts

  • fetch-births.py: A basic web-scraper to turn this table into a CSV file.

  • fetch-name-counts.py: Extracts all files from the SSA's national baby names ZIP file and combines the data into a single CSV.

  • combine-data.py: For each year/sex/name combination, calculates the proportion it represents of all births for that year and sex, using the datasets fetched by the two scripts above. By default, outputs only the top 1,000 names for each year/sex. To generate a file with a different threshold, pass that number as the first command line argument to the script. E.g.:

      ./bin/combine-data.py 2000 > data/top2000.csv
    

About

CSVs and parsers for the Social Security Administration's historical baby name data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages