A Metatab Example Data Package

An example data package, from the Metatab tutorial at https://github.com/CivicKnowledge/metatab-py/blob/master/README.rst

example.com-data_package-2017-us-1

Resources | Packages | Documentation| Contacts| Data Dictionary

Resources

Documentation

Contacts

Packages

Accessing Packages in Metapack

import metapack as mp
pkg = mp.open_package('http://library.metatab.org/example.com-data_package-2017-us-1.zip')

# Create Dataframes

random-names_df = pkg.resource('random-names').dataframe()
renter_cost_df = pkg.resource('renter_cost').dataframe()
simple-example-altnames_df = pkg.resource('simple-example-altnames').dataframe()
simple-example_df = pkg.resource('simple-example').dataframe()
unicode-latin1_df = pkg.resource('unicode-latin1').dataframe()
unicode-utf8_df = pkg.resource('unicode-utf8').dataframe()
renter_cost_excel07_df = pkg.resource('renter_cost_excel07').dataframe()
renter_cost_excel97_df = pkg.resource('renter_cost_excel97').dataframe()
renter_cost-2_df = pkg.resource('renter_cost-2').dataframe()

Data Dictionary

random-names | renter_cost | simple-example-altnames | simple-example | unicode-latin1 | unicode-utf8 | renter_cost_excel07 | renter_cost_excel97 | renter_cost-2

random-names

Column NameData TypeDescription
namestringA random name
sizenumberA random number

renter_cost

Column NameData TypeDescription
idinteger
gvidstring
renter_cost_gt_30integerNumber of renters who pay more than 30% of income in rent
renter_cost_gt_30_cvstringCoefficient of variation for renter_cost_gt_30
owner_cost_gt_30_pctnumberPercent of homeowners who pay more than 30% of income in mortgage
owner_cost_gt_30_pct_cvstringCoefficient of variation for owner_cost_gt_30_pct

simple-example-altnames

Column NameData TypeDescription
idinteger
foostring
barinteger
baznumber

simple-example

Column NameData TypeDescription
idinteger
uuidstring
intinteger
floatnumber

unicode-latin1

Column NameData TypeDescription
origin_englishstring
name_englishstring
origin_nativetext
name_nativetext

unicode-utf8

Column NameData TypeDescription
origin_englishstring
name_englishstring
origin_nativetext
name_nativetext

renter_cost_excel07

Column NameData TypeDescription
idinteger
gvidstringA GVID for the location. (a geoid in base62)
renter_cost_gt_30integerNumber of renters who pay more than 30% of income in rent
renter_cost_gt_30_cvstringCoefficient of variation for renter_cost_gt_30
owner_cost_gt_30_pctnumberPercent of homeowners who pay more than 30% of income in mortgage
owner_cost_gt_30_pct_cvstringCoefficient of variation for owner_cost_gt_30_pct

renter_cost_excel97

Column NameData TypeDescription
idinteger
gvidstringA GVID for the location. (a geoid in base62)
renter_cost_gt_30integerNumber of renters who pay more than 30% of income in rent
renter_cost_gt_30_cvstringCoefficient of variation for renter_cost_gt_30
owner_cost_gt_30_pctnumberPercent of homeowners who pay more than 30% of income in mortgage
owner_cost_gt_30_pct_cvstringCoefficient of variation for owner_cost_gt_30_pct

renter_cost-2

Column NameData TypeDescription
idinteger
gvidstringA GVID for the location. (a geoid in base62)
renter_cost_gt_30integerNumber of renters who pay more than 30% of income in rent
renter_cost_gt_30_cvstringCoefficient of variation for renter_cost_gt_30
owner_cost_gt_30_pctnumberPercent of homeowners who pay more than 30% of income in mortgage
owner_cost_gt_30_pct_cvstringCoefficient of variation for owner_cost_gt_30_pct

Last Modified 2019-07-22T23:11:44

Packages

Accessing Packages in Metapack

import metapack as mp
pkg = mp.open_package('http://library.metatab.org/example.com-data_package-2017-us-1.zip')

# Create Dataframes

random-names_df = pkg.resource('random-names').dataframe()
renter_cost_df = pkg.resource('renter_cost').dataframe()
simple-example-altnames_df = pkg.resource('simple-example-altnames').dataframe()
simple-example_df = pkg.resource('simple-example').dataframe()
unicode-latin1_df = pkg.resource('unicode-latin1').dataframe()
unicode-utf8_df = pkg.resource('unicode-utf8').dataframe()
renter_cost_excel07_df = pkg.resource('renter_cost_excel07').dataframe()
renter_cost_excel97_df = pkg.resource('renter_cost_excel97').dataframe()
renter_cost-2_df = pkg.resource('renter_cost-2').dataframe()