{"id":21358599,"url":"https://github.com/holgern/pyrdatasets","last_synced_at":"2025-07-13T00:34:12.157Z","repository":{"id":57460298,"uuid":"221234609","full_name":"holgern/pyRdatasets","owner":"holgern","description":"2293 datasets from various R packages packed as DataFrames through compressed pickle files","archived":false,"fork":false,"pushed_at":"2024-06-19T15:04:21.000Z","size":146913,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T22:50:57.400Z","etag":null,"topics":["data-science","datasets","python","rdatasets"],"latest_commit_sha":null,"homepage":"http://vincentarelbundock.github.io/Rdatasets/datasets.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holgern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-12T14:16:08.000Z","updated_at":"2024-11-15T06:02:45.000Z","dependencies_parsed_at":"2024-06-19T20:59:49.860Z","dependency_job_id":"b60da13b-519b-4e50-8a58-9c934f8ffadf","html_url":"https://github.com/holgern/pyRdatasets","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/holgern/pyRdatasets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holgern%2FpyRdatasets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holgern%2FpyRdatasets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holgern%2FpyRdatasets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holgern%2FpyRdatasets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holgern","download_url":"https://codeload.github.com/holgern/pyRdatasets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holgern%2FpyRdatasets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265075822,"owners_count":23707510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","datasets","python","rdatasets"],"created_at":"2024-11-22T05:20:10.838Z","updated_at":"2025-07-13T00:34:09.017Z","avatar_url":"https://github.com/holgern.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyRdatasets\r\n[![PyPi Version](https://img.shields.io/pypi/v/rdatasets.svg)](https://pypi.python.org/pypi/rdatasets/)\r\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/rdatasets/badges/version.svg)](https://anaconda.org/conda-forge/rdatasets)\r\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/rdatasets/badges/downloads.svg)](https://anaconda.org/conda-forge/rdatasets)\r\n\r\npyRdatasets is a collection of 2293 datasets taken from https://github.com/vincentarelbundock/Rdatasets.\r\nThe datasets were extracted from various R packages and stored as gzip packed pickle files in pandas DataFrame structure.\r\nA description to each dataset can be found here: http://vincentarelbundock.github.io/Rdatasets/datasets.html\r\n\r\n\r\nAll 2293 data records are already included in the package (no internet connection necessary), which has a size around 40 Mb.\r\n\r\n## Installation\r\n```\r\npip install rdatasets\r\n```\r\nor\r\n```\r\nconda install conda-forge::rdatasets\r\n```\r\n\r\n## Usage\r\n\r\n```\r\n\u003e\u003e\u003e import rdatasets\r\n\u003e\u003e\u003e dataset = rdatasets.data(\"iris\")\r\n\u003e\u003e\u003e dataset\r\n     Sepal.Length  Sepal.Width  Petal.Length  Petal.Width    Species\r\n0             5.1          3.5           1.4          0.2     setosa\r\n1             4.9          3.0           1.4          0.2     setosa\r\n2             4.7          3.2           1.3          0.2     setosa\r\n3             4.6          3.1           1.5          0.2     setosa\r\n4             5.0          3.6           1.4          0.2     setosa\r\n..            ...          ...           ...          ...        ...\r\n145           6.7          3.0           5.2          2.3  virginica\r\n146           6.3          2.5           5.0          1.9  virginica\r\n147           6.5          3.0           5.2          2.0  virginica\r\n148           6.2          3.4           5.4          2.3  virginica\r\n149           5.9          3.0           5.1          1.8  virginica\r\n\r\n[150 rows x 5 columns]\r\n\u003e\u003e\u003e rdatasets.data(\"forecast\", \"co2\")\r\nCould not read forecast/co2\r\nWhich item did you mean: ['gas', 'gold', 'taylor', 'wineind', 'woolyrnq']?\r\n\u003e\u003e\u003e rdatasets.data(\"forecast\", \"gas\")\r\n            time  value\r\n0    1956.000000   1709\r\n1    1956.083333   1646\r\n2    1956.166667   1794\r\n3    1956.250000   1878\r\n4    1956.333333   2173\r\n..           ...    ...\r\n471  1995.250000  49013\r\n472  1995.333333  56624\r\n473  1995.416667  61739\r\n474  1995.500000  66600\r\n475  1995.583333  60054\r\n\r\n[476 rows x 2 columns]\r\n```\r\n\r\nThe dataset description can be printed by:\r\n```\r\nimport rdatasets\r\nprint(rdatasets.descr(\"iris\"))\r\n```\r\nA summary of all datasets is available as DataFrame object:\r\n```\r\nimport rdatasets\r\nrdatasets.summary()\r\n```\r\n\r\n## Thanks to\r\nThe archive of datasets distributed with R: of https://github.com/vincentarelbundock/Rdatasets\r\n\r\n\r\n## Pre-commit-config\r\n\r\n### Installation\r\n\r\n```\r\n$ pip install pre-commit\r\n```\r\n\r\n### Using homebrew:\r\n```\r\n$ brew install pre-commit\r\n```\r\n\r\n```\r\n$ pre-commit --version\r\npre-commit 2.10.0\r\n```\r\n\r\n### Install the git hook scripts\r\n\r\n```\r\n$ pre-commit install\r\n```\r\n\r\n### Run against all the files\r\n```\r\npre-commit run --all-files\r\npre-commit run --show-diff-on-failure --color=always --all-files\r\n```\r\n\r\n### Update package rev in pre-commit yaml\r\n```bash\r\npre-commit autoupdate\r\npre-commit run --show-diff-on-failure --color=always --all-files\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholgern%2Fpyrdatasets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholgern%2Fpyrdatasets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholgern%2Fpyrdatasets/lists"}