Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.27 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.27 KB

CBSOData4

Build Status

This is a simple Tables-interface to use the CBS odata4 beta portal to download CBS-datasets.

How to use it

If you know the exact dataset, you can directly use it:

using DataFrames, CBSOData4

df = DataFrame(CBSOData4.ODataTable_long("80072ned"))

You can use the keyword argument columns to give a list of column names to select (case sensitive). And you can use filter to give a filter expression for the rows (as a String) using the Odata4 rules.

For a given table you can get information about the columns in the dataset and about the used classifications by using get_meta:

df_meta = CBSOData4.get_meta("80072ned")

This gives a dict with Properties and the classifications.

Using get_tables you can get a list of dicts of all available tables. The Identifier can then be used to get the actual data.