A Metatab Example Data Package

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

Name: example_data_package-2017-us-2 Dataset: example-data-package Version: 1 Space: US Time: 2017 Spatialgrain: None Giturl: https://github.com/Metatab/metatab-packages.git Identifier: e7466d89-9156-4df6-a171-3102b04ae583 Section: Documentation|Title|Description Homepage: http://metatab.org .Title: Metatab Home Page .Description: Main Metatab home page Documentation: https://github.com/CivicKnowledge/metatab-py/blob/master/README.rst .Title: Metatab Python Package README .Description: The README in the Metatab Githup repo contains the tutorial for generating this package. Section: Contacts|email Origin: example.com Creator: Eric Busboom .Email: eric@civicknowledge. com Wrangler: Eric Busboom .Email: eric@civicknowledge. com Section: Notes Note: None
Section: Resources|Name|StartLine|HeaderLines|Encoding|Description Datafile: http://public.source.civicknowledge.com/example.com/sources/test_data.zip#test_data%2Fcsv%2Fsimple-example.csv .Name: simple-example .Description: Random UUIDs, integers and numbers Datafile: metadata.ipynb#df .Name: df .Description: Random UUIDs, integers and numbers

In [1]:
import seaborn as sns
import metapack as mp
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from IPython.display import display 

%matplotlib inline
%load_ext metapack.jupyter.magic
sns.set_context('notebook')
mp.jupyter.init()

In [2]:
# Code goes after metadata, before schema

df = pd.DataFrame({
    'rand': np.random.randint(0,100,1000)
})
Section: Schema|AltName|DataType|Description|Datatype Table: simple-example Table.Column: id .Datatype: integer Table.Column: uuid .Datatype: string Table.Column: int .Datatype: integer Table.Column: float .Datatype: number Table: df Table.Column: rand .Datatype: integer