Sep 11, 2023

Enriching records in a CSV with Python

This sample notebook enriches name-containing records in a CSV using the HumanGraphics API via a Python Jupyter Notebook.

The sample notebook is in the humangraphics/python-sample-enrich-names-csv GitHub repository.

Assumptions

This article assumes you are comfortable working with Python in general and Jupyter Notebooks specifically.

Setup

There is some setup required to run this notebook.

Create an account

If you don't already have an account, then this article can walk you through the process of creating your (free) account.

Subscribe to a plan

If you haven't already subscribed to a plan, then this article can help you choose the right plan for you. All plans offer a free trial period, so you can run this sample for free!

Set up the repository

After you've cloned and set up the repository, you'll need to follow the setup instructions for the repo.

Example Inputs and Outputs

You can see sample program inputs and outputs on GitHub.

Notes

This sample does not demonstrate the full power of the HumanGraphics API. Specifically, it only uses names to generate demographics estimates. The API also offers endpoints for analyzing locations alone, faces alone, and names/locations/faces all together.