PyDataset

Instant access to many datasets in Python.

Github星跟蹤圖

PyDataset

PyPI version

Provides instant access to many datasets right from Python (in pandas DataFrame structure).

What?

The idea is simple. There are various datasets available out there, but they are scattered in different places over the web.
Is there a quick way (in Python) to access them instantly without going through the hassle of searching, downloading, and reading ... etc?
PyDataset tries to address that question :)

Usage:

Start with importing data():

from pydataset import data
  • To load a dataset:
titanic = data('titanic')
  • To display the documentation of a dataset:
data('titanic', show_doc=True)
  • To see the available datasets:
data()

That's it.
See more examples.

Why?

In R, there is a very easy and immediate way to access multiple statistical datasets,
in almost no effort. All it takes is one line > data(dataset_name).
This makes the life easier for quick prototyping and testing.
Well, I am jealous that Python does not have a similar functionality.
Thus, the aim of pydataset is to fill that gap.

Currently, pydataset has about 757 (mostly numerical-based) datasets, that are based on RDatasets.
In the future, I plan to scale it to include a larger set of datasets.
For example,

  1. include textual data for NLP-related tasks, and
  2. allow adding a new dataset to the in-module repository.

Installation:

$ pip install pydataset

Uninstall:

  • $ pip uninstall pydataset
  • $ rm -rf $HOME/.pydataset

Changelog

0.2.0

  • Add search dataset by name similarity.
  • Example:
>>> data('heat')
Did you mean:
Wheat, heart, Heating, Yeast, eidat, badhealth, deaths, agefat, hla, heptathlon, azt

0.1.1

  • Fix: add support to Windows and fix filepaths, issue #1

Dependency:

  • pandas

Miscellaneous:

  • Tested on OSX and Linux (debian).
  • Supports both Python 2 (2.7.11) and Python 3 (3.5.1).

TODO:

  • add textual datasets (e.g. NLTK stuff).
  • add samples generators.

Thanks to:

主要指標

概覽
名稱與所有者iamaziz/PyDataset
主編程語言Python
編程語言Python (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2016-01-31 20:43:28
推送於2022-03-25 16:24:01
最后一次提交2016-02-08 22:21:04
發布數2
最新版本名稱0.1.1 (發布於 2016-02-02 13:19:21)
第一版名稱0.1.0 (發布於 2016-01-31 18:28:53)
用户参与
星數0.9k
關注者數33
派生數87
提交數17
已啟用問題?
問題數17
打開的問題數14
拉請求數0
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?