Member-only story

93 Datasets That Load With A Single Line of Code

How you can pull one of a few dozen example political, sporting, education, and other frames on-the-fly.

Adam Ross Nelson
Towards Data Science

--

TLDR: If you’re bored with the same old example data — bookmark this article. It’ll show you nearly 100 examples you may not have previously worked with. Each example loads in one line of code.

Examples draw from politics, education, health, sports, technology, and also just for funsies.

Image credit: Author’s illustration created in Canva.

Introduction

For training, testing, demonstration, or other related purposes in data science you need data. Quickly loading an example data set on-the-fly (in a single line of code) is usually quite easy. If you’re like me, maybe you’ve fallen into the practice of having one or two “go to” choices.

To add variety to my work I made this list of nearly 100 data sources that load in a single line of code. I hope others might also find this list useful.

Data sources include in alpha order: datausa.io, ESPN (sports), Five Thirty Eight (sports, politics, other), Wikipedia, among others. In preparing this article I avoided some of the more common data source options such as Kaggle. This article is about expanding our work to new examples.

--

--

Responses (3)