Git Product home page Git Product logo

allthenames's Introduction

All The Names

Code Hygiene

t black codestyle

Collection of various names datasets.

The Data

There are currently 15 sources which produces:

Item Count
Total Rows 14,607,135
Unique Names 289,755
Unique Origins 623

There is no guarantee of the accuracy of the data, ie the associated gender & origin, as it will vary (significantly) source to source.

To use the data you can read it straight from github into pandas:

import pandas as pd

names_df = pd.read_csv("https://raw.githubusercontent.com/diabolical-ninja/AllTheNames/main/names.csv", sep = "|")

Structure

Found in names.csv

Field Type Description
First Name String First Name, noting some first names may be longer than 1 word
Origin String Country, classification or race of origin. If multiple countries/classification/races are available they should be represented as new lines
Gender String If available. Defined as F, M, Other or NULL

How To Run

This project uses poetry for dependency management. This assumes python 3.9+. It may well work for lower versions but has not been tested.

First setup the environment by running:

poetry install

You can then generate a dataset of interest from the command line via:

poetry run python src/data_collection/<generation_script_run>.py

To build all sources, run:

poetry run python all_the_names.py

You should see a file names.csv appear in the root directory.

This process will depend on your network speed but on my 2021 MBP & 50Mbps internet connection it takes roughly 2min & 10sec

Contributions

Contributions are absolutely welcomed and encouraged. To do so, raise a PR with the new datasource and its integration into the names dataset and schema.

Ideas:

  • Some datasets have a "frequency" measure of sorts. It would be cool to include that & have a mechanism to standardise/normalise the value across all datasets
  • Standardise origin so that difference sources better match. Eg USA, United States of America, US of A, etc are all consistently presented as the same location

Issues

If you encounter any problems, please file an issue along with a detailed description.

allthenames's People

Contributors

diabolical-ninja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.