{ "info": { "author": "Jake VanderPlas", "author_email": "jakevdp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# vega_datasets\n\n[![build status](http://img.shields.io/travis/altair-viz/vega_datasets/master.svg?style=flat)](https://travis-ci.org/altair-viz/vega_datasets)\n\nA Python package for offline access to [vega datasets](https://github.com/vega/vega-datasets).\n\nThis package has several goals:\n\n- Provide straightforward access in Python to the datasets made available at [vega-datasets](https://github.com/vega/vega-datasets).\n- return the results in the form of a Pandas dataframe.\n- wherever dataset size and/or license constraints make it possible, bundle the dataset with the package so that datasets can be loaded in the absence of a web connection.\n\nCurrently the package bundles a half-dozen datasets, and falls back to using HTTP requests for the others.\n\n## Installation\n\n```\n$ pip install vega_datasets\n```\n\n## Usage\n\nThe main object in this library is ``data``:\n\n```python\n>>> from vega_datasets import data\n```\n\nIt contains attributes that access all available datasets, locally if\navailable. For example, here is the well-known iris dataset:\n\n```python\n>>> df = data.iris()\n>>> df.head()\n petalLength petalWidth sepalLength sepalWidth species\n0 1.4 0.2 5.1 3.5 setosa\n1 1.4 0.2 4.9 3.0 setosa\n2 1.3 0.2 4.7 3.2 setosa\n3 1.5 0.2 4.6 3.1 setosa\n4 1.4 0.2 5.0 3.6 setosa\n```\n\nIf you're curious about the source data, you can access the URL for any of the available datasets:\n\n```python\n>>> data.iris.url\n'https://vega.github.io/vega-datasets/data/iris.json'\n```\n\nFor datasets bundled with the package, you can also find their location on disk:\n\n```python\n>>> data.iris.filepath\n'/lib/python3.6/site-packages/vega_datasets/data/iris.json'\n```\n\n## Available Datasets\n\nTo list all the available datsets, use ``list_datasets``:\n\n```python\n>>> data.list_datasets()\n['7zip', 'airports', 'anscombe', 'barley', 'birdstrikes', 'budget', 'budgets', 'burtin', 'cars', 'climate', 'co2-concentration', 'countries', 'crimea', 'disasters', 'driving', 'earthquakes', 'ffox', 'flare', 'flare-dependencies', 'flights-10k', 'flights-200k', 'flights-20k', 'flights-2k', 'flights-3m', 'flights-5k', 'flights-airport', 'gapminder', 'gapminder-health-income', 'gimp', 'github', 'graticule', 'income', 'iris', 'jobs', 'londonBoroughs', 'londonCentroids', 'londonTubeLines', 'lookup_groups', 'lookup_people', 'miserables', 'monarchs', 'movies', 'normal-2d', 'obesity', 'points', 'population', 'population_engineers_hurricanes', 'seattle-temps', 'seattle-weather', 'sf-temps', 'sp500', 'stocks', 'udistrict', 'unemployment', 'unemployment-across-industries', 'us-10m', 'us-employment', 'us-state-capitals', 'weather', 'weball26', 'wheat', 'world-110m', 'zipcodes']\n```\n\nTo list local datasets (i.e. those that are bundled with the package and can be used without a web connection), use the ``local_data`` object instead:\n\n```python\n>>> from vega_datasets import local_data\n>>> local_data.list_datasets()\n\n['airports', 'anscombe', 'barley', 'burtin', 'cars', 'crimea', 'driving', 'iowa-electricity', 'iris', 'seattle-temps', 'seattle-weather', 'sf-temps', 'stocks', 'us-employment', \"wheat\"]\n```\n\nWe plan to add more local datasets in the future, subject to size and licensing constraints. See the [local datasets issue](https://github.com/altair-viz/vega_datasets/issues/1) if you would like to help with this.\n\n## Dataset Information\n\nIf you want more information about any dataset, you can use the ``description`` property:\n\n```python\n>>> data.iris.description\n'This classic dataset contains lengths and widths of petals and sepals for 150 iris flowers, drawn from three species. It was introduced by R.A. Fisher in 1936 [1]_.'\n```\n\nThis information is also part of the ``data.iris`` doc string.\nDescriptions are not yet included for all the datasets in the package; we hope to add more information on this in the future.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "http://github.com/altair-viz/vega_datasets", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/altair-viz/vega_datasets", "keywords": "", "license": "MIT", "maintainer": "Jake VanderPlas", "maintainer_email": "jakevdp@gmail.com", "name": "vega_datasets", "package_url": "https://pypi.org/project/vega_datasets/", "platform": "", "project_url": "https://pypi.org/project/vega_datasets/", "project_urls": { "Bug Reports": "https://github.com/altair-viz/vega_datasets/issues", "Download": "http://github.com/altair-viz/vega_datasets", "Homepage": "http://github.com/altair-viz/vega_datasets", "Source": "https://github.com/altair-viz/vega_datasets" }, "release_url": "https://pypi.org/project/vega_datasets/0.7.0/", "requires_dist": [ "pandas" ], "requires_python": "", "summary": "A Python package for offline access to Vega datasets", "version": "0.7.0" }, "last_serial": 4572532, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "083c3920ce84bfaa571ce0b82d33b6e3", "sha256": "fc83e0a4c76230a14e00ac736f115c2ff8b1fab6f40de4081f5e3c0c25be0e7f" }, "downloads": -1, "filename": "vega_datasets-0.1.tar.gz", "has_sig": false, "md5_digest": "083c3920ce84bfaa571ce0b82d33b6e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6163, "upload_time": "2018-01-13T04:58:07", "url": "https://files.pythonhosted.org/packages/69/22/e1ebeb9e38bc1269cbf9778391097da8514f4078a31d9f9742dc521a22a1/vega_datasets-0.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "aacd17fd75add4901375f5484fbec1e6", "sha256": "f6e440332498a402b28d7605842b2d588fa7abefa63935578d1a5a42fdd5e8fe" }, "downloads": -1, "filename": "vega_datasets-0.2.0.tar.gz", "has_sig": false, "md5_digest": "aacd17fd75add4901375f5484fbec1e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 97875, "upload_time": "2018-01-19T20:31:54", "url": "https://files.pythonhosted.org/packages/5c/06/0b9e2c66d917d326805b8cede50615f7039838f1cc601beccbdcc8743b53/vega_datasets-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7570ed892d7d93d3ba87f4cbdb424d70", "sha256": "d7a05b73aa0b75d70b21e33fe96026b39fd9a47da3f3b74ae7bca7bab96a6baf" }, "downloads": -1, "filename": "vega_datasets-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7570ed892d7d93d3ba87f4cbdb424d70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191004, "upload_time": "2018-01-24T21:20:46", "url": "https://files.pythonhosted.org/packages/12/d0/852d1468fee100eeeb9e444f9cf625c439ffc08dfbe30d6c93cbaec6b686/vega_datasets-0.3.0.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "06eb390a19beb946724c4df0181e1041", "sha256": "a20891f5846b8f2ce8574eabad87902195e56bdabf4fd116ab1a733ee61746a6" }, "downloads": -1, "filename": "vega_datasets-0.4.tar.gz", "has_sig": false, "md5_digest": "06eb390a19beb946724c4df0181e1041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 193514, "upload_time": "2018-02-26T04:48:49", "url": "https://files.pythonhosted.org/packages/6c/06/57d7775d625a34d47d9e59fd6f51a1eac68d135981e1adde0a9a97f71aa3/vega_datasets-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "18b8eb0cfd356da4f5cd90066dbc64ee", "sha256": "e3a6cd21730b75d4c03f22c653cda5ef5dd64bbd4e5cca46be3ddc8379541623" }, "downloads": -1, "filename": "vega_datasets-0.4.1.tar.gz", "has_sig": false, "md5_digest": "18b8eb0cfd356da4f5cd90066dbc64ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 195784, "upload_time": "2018-03-16T04:29:58", "url": "https://files.pythonhosted.org/packages/c4/fd/97a6f656f178885837c273f41b13725f19a2274b3011da9fa55e914e3d6e/vega_datasets-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "f9b538c7d26b9fbd6e8180bfc0d32ade", "sha256": "4d93760d2ca439180a8f4d70e9bd9a4fe695113757dbde9d8dcaafe3676b0e84" }, "downloads": -1, "filename": "vega_datasets-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f9b538c7d26b9fbd6e8180bfc0d32ade", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 201823, "upload_time": "2018-05-15T17:24:42", "url": "https://files.pythonhosted.org/packages/47/c1/62c6cbdf7723209634826e0a96806d8493955fcf35d71c2ff870054b0a9a/vega_datasets-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "33223567dc626c8acad5fa70fbd5578a", "sha256": "1fa672ba89ded093b30c6d59fce10aca3ac7c927df254e588da7b6d14f695181" }, "downloads": -1, "filename": "vega_datasets-0.5.0.tar.gz", "has_sig": false, "md5_digest": "33223567dc626c8acad5fa70fbd5578a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 201364, "upload_time": "2018-05-15T17:24:44", "url": "https://files.pythonhosted.org/packages/ee/82/7a9e60a45c0fd32127c9badc3d22f59b0780276bfc3d1bc9a091b5709ade/vega_datasets-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "75826065b048ca1abd8a9f5d12a6247b", "sha256": "278d49d1054f85ca562348460bacffffe3c0c1fb22f78793f2e9bbb58b422677" }, "downloads": -1, "filename": "vega_datasets-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75826065b048ca1abd8a9f5d12a6247b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 210976, "upload_time": "2018-11-21T03:39:37", "url": "https://files.pythonhosted.org/packages/8d/aa/1f9f6e3b2c0632660ed95af2746a0e91a4740117f1985261f30a7e7a97bc/vega_datasets-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c63c3aa7c3a334b80d89ea8f0f9eea1", "sha256": "a38d25bcb9dbf06d4b8adfa25fc4fed19f329e3be4d9b55ebd1395574c2bf30b" }, "downloads": -1, "filename": "vega_datasets-0.6.0.tar.gz", "has_sig": false, "md5_digest": "5c63c3aa7c3a334b80d89ea8f0f9eea1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 211947, "upload_time": "2018-11-21T03:39:39", "url": "https://files.pythonhosted.org/packages/23/af/021b51c73c4676544fdf47e80f82b2ed5f96e5717e4fb9d611dd661420ce/vega_datasets-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "e34ad9661bc7e073c462dee66c675262", "sha256": "63d6eaf129ab23a7d0744e54d11dba9e7eecc0974fd9a237cfae9cfdbef3c37a" }, "downloads": -1, "filename": "vega_datasets-0.7.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e34ad9661bc7e073c462dee66c675262", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 209278, "upload_time": "2018-12-07T16:29:16", "url": "https://files.pythonhosted.org/packages/0a/53/00c0d891e2da61442745aa5f6677e93b68ea247b49ed70a7da1dd764760f/vega_datasets-0.7.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4afb629ead45fab1c68b3bed9d2eb2b0", "sha256": "20d490b417f84607eb5079400f608f2e9c135b7092bee10f6857f6d23136e459" }, "downloads": -1, "filename": "vega_datasets-0.7.0.tar.gz", "has_sig": false, "md5_digest": "4afb629ead45fab1c68b3bed9d2eb2b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 212846, "upload_time": "2018-12-07T16:29:18", "url": "https://files.pythonhosted.org/packages/ec/f7/a937690cd73cdac61b7e70bb23c8a5486cb1ffb5d7e033882ef0f990cc5f/vega_datasets-0.7.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e34ad9661bc7e073c462dee66c675262", "sha256": "63d6eaf129ab23a7d0744e54d11dba9e7eecc0974fd9a237cfae9cfdbef3c37a" }, "downloads": -1, "filename": "vega_datasets-0.7.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e34ad9661bc7e073c462dee66c675262", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 209278, "upload_time": "2018-12-07T16:29:16", "url": "https://files.pythonhosted.org/packages/0a/53/00c0d891e2da61442745aa5f6677e93b68ea247b49ed70a7da1dd764760f/vega_datasets-0.7.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4afb629ead45fab1c68b3bed9d2eb2b0", "sha256": "20d490b417f84607eb5079400f608f2e9c135b7092bee10f6857f6d23136e459" }, "downloads": -1, "filename": "vega_datasets-0.7.0.tar.gz", "has_sig": false, "md5_digest": "4afb629ead45fab1c68b3bed9d2eb2b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 212846, "upload_time": "2018-12-07T16:29:18", "url": "https://files.pythonhosted.org/packages/ec/f7/a937690cd73cdac61b7e70bb23c8a5486cb1ffb5d7e033882ef0f990cc5f/vega_datasets-0.7.0.tar.gz" } ] }