- Notifications
You must be signed in to change notification settings - Fork6
Data Package reader for Pandas
License
NotificationsYou must be signed in to change notification settings
rgieseke/pandas-datapackage-reader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Easy loading of tabular data fromData Packages into Pandas DataFrames.
pip install pandas-datapackage-reader
frompandas_datapackage_readerimportread_datapackage# From GitHub repositorycountry_codes=read_datapackage("https://github.com/datasets/country-codes")# From local directorycountry_codes=read_datapackage("country-codes")# Data Package with GeoJSONgeo_countries=read_datapackage("https://github.com/datasets/geo-countries")
Resource metadata from the Data Package is returned as a dictionary in the_metadata
attribute.
country_codes._metadata
contains
{'format': 'csv', 'name': 'country-codes', 'path': 'data/country-codes.csv', 'schema': {'fields': [{'description': 'Country or Area official Arabic short name from UN Statistics Divsion', 'name': 'official_name_ar', 'title': 'official name Arabic', 'type': 'string'}, {'description': 'Country or Area official Chinese short name from UN Statistics Divsion', 'name': 'official_name_cn', 'title': 'official name Chinese', 'type': 'string'},# ...
BSD-2-Clause, seeLICENSE
About
Data Package reader for Pandas
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.