Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (45.3k points)

For quick testing, debugging, creating portable examples, and benchmarking, R has available to it a large number of data sets (in the Base R datasets package). The command library(help="datasets") at the R prompt describes nearly 100 historical datasets, each of which has associated descriptions and metadata.

Is there anything like this for Python?

1 Answer

0 votes
by (16.8k points)

I just created PyDataset, which is a simple module to make loading a dataset from Python as easy as R's (and it does not require R installation, only pandas).

To start using it, install the module:

$ pip install pydataset

then just load up any dataset you wish (currently around 757 datasets available) :

from pydataset import data

titanic = data('titanic')

Browse Categories

...