CBSOData Documentation

Vergelijkbare documenten
CBSOData Documentation

2019 SUNEXCHANGE USER GUIDE LAST UPDATED

EM7680 Firmware Update by OTA

General info on using shopping carts with Ingenico epayments

Shipment Centre EU Quick Print Client handleiding [NL]

Activant Prophet 21. Prophet 21 Version 12.0 Upgrade Information

EM7680 Firmware Auto-Update for Kodi 17.2

EM7680 Firmware Update by Micro SD card

! GeoNetwork INSPIRE Atom!

Settings for the C100BRS4 MAC Address Spoofing with cable Internet.

How to install and use dictionaries on the ICARUS Illumina HD (E652BK)

LDA Topic Modeling. Informa5ekunde als hulpwetenschap. 9 maart 2015

EM7580 Firmware Update by Micro SD card

Online Resource 1. Title: Implementing the flipped classroom: An exploration of study behaviour and student performance

DBMS. DataBase Management System. Op dit moment gebruiken bijna alle DBMS'en het relationele model. Deze worden RDBMS'en genoemd.

EM7680 Firmware Update by Micro SD card or USB

EM6250 Firmware update V030507

RECEPTEERKUNDE: PRODUCTZORG EN BEREIDING VAN GENEESMIDDELEN (DUTCH EDITION) FROM BOHN STAFLEU VAN LOGHUM

LONDEN MET 21 GEVARIEERDE STADSWANDELINGEN 480 PAGINAS WAARDEVOLE INFORMATIE RUIM 300 FOTOS KAARTEN EN PLATTEGRONDEN

Travel Survey Questionnaires

SAMPLE 11 = + 11 = + + Exploring Combinations of Ten + + = = + + = + = = + = = 11. Step Up. Step Ahead

Data Handling Ron van Lammeren - Wageningen UR

Interaction Design for the Semantic Web

NMOZTMKUDLVDKECVLKBVESBKHWIDKPDF-WWUS Page File Size 9,952 KB 29 May, 2016

MyDHL+ Van Non-Corporate naar Corporate

DBMS SQL. Relationele databases. Sleutels. DataBase Management System. Inleiding relationele databases. bestaan uit tabellen.

ZorgMail Address Book SE Documentation


MyDHL+ Uw accountnummer(s) delen

[BP-ebMS-H-000] Welke versie van Hermes moet er gebruikt worden?

UtlGefOpen Documentation

Hoe te verbinden met NDI Remote Office (NDIRO): Apple OS X How to connect to NDI Remote Office (NDIRO): Apple OS X

Procedure Reset tv-toestellen:

7 aug Snelstart document Thecus N2100 Y.E.S.box BlackIP Versie 1.0

EM7680 Firmware Update by Micro SD card or USB stick

ECHTE MANNEN ETEN GEEN KAAS PDF

Het beheren van mijn Tungsten Network Portal account NL 1 Manage my Tungsten Network Portal account EN 14

Understanding and being understood begins with speaking Dutch

Dagverhaal Van Eene Reis Naar Paramaribo En Verdere Omstreken In De Kolonie Suriname - Primary Source Edition (Dutch Edition) By Gaspard Philippe

Datamodelleren en databases 2011

FOD VOLKSGEZONDHEID, VEILIGHEID VAN DE VOEDSELKETEN EN LEEFMILIEU 25/2/2016. Biocide CLOSED CIRCUIT

BathySurvey. A Trimble Access hydrographic survey module

Handleiding Installatie ADS

TOEGANG VOOR NL / ENTRANCE FOR DUTCH : lator=c&camp=24759

GS1 Data Source. Guide to the management of digital files for data suppliers and recipients

OUTDOOR HD BULLET IP CAMERA PRODUCT MANUAL

en DMS koppelvlak Utrecht, 14 april 2011

Bijlage 2: Informatie met betrekking tot goede praktijkvoorbeelden in Londen, het Verenigd Koninkrijk en Queensland

ICARUS Illumina E653BK on Windows 8 (upgraded) how to install USB drivers

MyDHL+ Tarief berekenen

Hunter-CRM. Documentatie Handleiding Spamfilter

Yes/No (if not you pay an additional EUR 75 fee to be a member in 2020

BIJBEL IN GEWONE TAAL PDF

TAAL ACTIEF GROEP 8 SPELLING 2 PDF

1. Voor het installeren wordt geadviseerd een backup te maken van uw database en bestanden.

Ius Commune Training Programme Amsterdam Masterclass 16 June 2016

ETS 4.1 Beveiliging & ETS app concept

Nieuwsbrief NRGD. Editie 11 Newsletter NRGD. Edition 11. pagina 1 van 5.

Slice & Dice Data Analysis using Pandas

Installatie van Windows 10 op laptops. Windows 10 installation on laptops

Find Neighbor Polygons in a Layer

AE1103 Statics. 25 January h h. Answer sheets. Last name and initials:

liniled Cast Joint liniled Gietmof liniled Castjoint

Issues in PET Drug Manufacturing Steve Zigler PETNET Solutions April 14, 2010

Ondertussen In Revsund: Amsterdammers Op Het Zweedse Platteland (Nederlanders Over De Grens) (Dutch Edition) By Ruben Heiloo READ ONLINE

Introductie in flowcharts

Magnalia Dei : Onderwijzing In De Christelijke Religie Naar Gereformeerde Belijdenis (Dutch Edition) By Herman Bavinck

Firewall van de Speedtouch 789wl volledig uitschakelen?

FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE. Toets Inleiding Kansrekening 1 8 februari 2010

Blackboard Toetsvragen maken in Word

Hoe met Windows 8 te verbinden met NDI Remote Office (NDIRO) How to connect With Windows 8 to NDI Remote Office (NDIRO

Four-card problem. Input

Add the standing fingers to get the tens and multiply the closed fingers to get the units.

GS1 Data Source. Guide to the Management of Digital Files for Suppliers

AVG / GDPR -Algemene verordening gegevensbescherming -General data Protection Regulation

Handleiding Zuludesk Parent

De Relatie tussen Werkdruk, Pesten op het Werk, Gezondheidsklachten en Verzuim

EM4594 Firmware update

AANKOOP EIGEN WONING: DIRECT GELD VAN DE BELASTINGDIENST? J.C. SUURMOND & ZN. BELASTINGADVISEURS

DAT IS LEKKER RECEPTEN UIT PDF

ATOS Viewer for Dental Frameworks User Manual

ZO GAAT DAT IN RUSLAND PDF

Ius Commune Training Programme Amsterdam Masterclass 15 June 2018

MyDHL+ ProView activeren in MyDHL+

CHROMA STANDAARDREEKS

Registratie- en activeringsproces voor de Factuurstatus Service NL 1 Registration and activation process for the Invoice Status Service EN 10

After that, the digits are written after each other: first the row numbers, followed by the column numbers.

Registratie- en activeringsproces voor de Factuurstatus Service NL 1 Registration and activation process for the Invoice Status Service EN 11

BE Nanoregistry Annual Public Report

Website review kamernet.nl

Ir. Herman Dijk Ministry of Transport, Public Works and Water Management

SPX Model A-360 Azimuth Antenna Rotor Model 1 & 2

Transcriptie:

CBSOData Documentation Release 0.1 Jonathan de Bruin Mar 18, 2017

Contents 1 Statistics Netherlands opendata API client for Python 3 1.1 Installation................................................ 3 1.2 Usage................................................... 3 2 Reference 7 Python Module Index 9 i

ii

CBSOData Documentation, Release 0.1 Contents: Contents 1

CBSOData Documentation, Release 0.1 2 Contents

CHAPTER 1 Statistics Netherlands opendata API client for Python Retrieve data from the open data interface of Statistics Netherlands (Centraal Bureau voor de Statistiek) with Python. The documentation is found at this page and on readthedocs.io. R user? Use cbsodatar. Installation From PyPi pip install cbsodata Usage Load the package with >>> import cbsodata Tables Statistics Netherlands (CBS) has a large amount of public available data tables (more than 4000 at the moment of writing). Each table is identified by a unique identifier (Identifier). >>> tables = cbsodata.get_table_list() >>> print(tables[0]) {'Catalog': 'CBS', 'ColumnCount': 18, 'DefaultPresentation': '_la=nl&_si=&_gu=&_ed=landvanuiteindelijkezeggenschapuci&_ td=perioden&graphtype=line', 'DefaultSelection': "$filter=((landvanuiteindelijkezeggenschapuci eq '11111') or (LandVanUiteindelijkeZeggenschapUCI eq '22222')) and (Bedrijfsgrootte eq '10000') and (substringof('jj',perioden))&$select=landvanuiteindelijkezeggenschapuci, Bedrijfsgrootte, Perioden, FiscaalJaarloonPerBaan_15", 3

CBSOData Documentation, Release 0.1 'ExplanatoryText': '', 'Frequency': 'Perjaar', 'GraphTypes': 'Table,Bar,Line', 'ID': 0, 'Identifier': '82010NED', 'Language': 'nl', 'MetaDataModified': '2014-02-04T02:00:00', 'Modified': '2014-02-04T02:00:00', 'OutputStatus': 'Regulier', 'Period': '2008 t/m 2011', 'ReasonDelivery': 'Actualisering', 'RecordCount': 32, 'SearchPriority': '2', 'ShortDescription': '\ndeze tabel bevat informatie over banen en lonen bij bedrijven in Nederland, uitgesplitst naar het land van uiteindelijke zeggenschap van die bedrijven. Hierbij wordt onderscheid gemaakt tussen bedrijven onder Nederlandse zeggenschap en bedrijven onder buitenlandse zeggenschap. In de tabel zijn alleen de bedrijven met werknemers in loondienst meegenomen. De cijfers hebben betrekking op het totale aantal banen bij deze bedrijven en de samenstelling van die banen naar kenmerken van de werknemers (baanstatus, geslacht, leeftijd, herkomst en hoogte van het loon). Ook het gemiddelde fiscale jaarloon per baan is in de tabel te vinden. \n\ngegevens beschikbaar vanaf: 2008 \n\nstatus van de cijfers: \nde cijfers in deze tabel zijn definitief.\n\nwijzigingen per 4 februari 2014\nDe cijfers van 2011 zijn toegevoegd.\n\nwanneer komen er nieuwe cijfers?\nde cijfers over 2012 verschijnen in de eerste helft van 2015.\n', 'ShortTitle': 'Zeggenschap bedrijven; banen, grootte', 'Source': 'CBS.', 'Summary': 'Banen en lonen van werknemers bij bedrijven in Nederland\nnaar land van uiteindelijke zeggenschap en bedrijfsgrootte', 'SummaryAndLinks': 'Banen en lonen van werknemers bij bedrijven in Nederland<br /> naar land van uiteindelijke zeggenschap en bedrijfsgrootte<br /><a href="http:// opendata.cbs.nl/odataapi/odata/82010ned">http://opendata.cbs.nl/odataapi/odata/ 82010NED</a><br /><a href="http://opendata.cbs.nl/odatafeed/odata/82010ned">http:// opendata.cbs.nl/odatafeed/odata/82010ned</a>', 'Title': 'Zeggenschap bedrijven in Nederland; banen en lonen, bedrijfsgrootte', 'Updated': '2014-02-04T02:00:00'} Info Get information about a table with the get_info function. >>> info = cbsodata.get_info('82070eng') # Returns a dict with info >>> info['title'] 'Caribbean Netherlands; employed labour force characteristics 2012' >>> info['modified'] '2013-11-28T15:00:00' Data The function you are looking for!! The function get_data returns a list of dicts with the table data. >>> data = cbsodata.get_data('82070eng') [{'CaribbeanNetherlands': 'Bonaire', 'EmployedLabourForceInternatDef_1': 8837, 'EmployedLabourForceNationalDef_2': 8559, 4 Chapter 1. Statistics Netherlands opendata API client for Python

CBSOData Documentation, Release 0.1 'Gender': 'Total male and female', 'ID': 0, 'Periods': '2012', 'PersonalCharacteristics': 'Total personal characteristics'}, {'CaribbeanNetherlands': 'St. Eustatius', 'EmployedLabourForceInternatDef_1': 2099, 'EmployedLabourForceNationalDef_2': 1940, 'Gender': 'Total male and female', 'ID': 1, 'Periods': '2012', 'PersonalCharacteristics': 'Total personal characteristics'}, {'CaribbeanNetherlands': 'Saba', 'EmployedLabourForceInternatDef_1': 1045, 'EmployedLabourForceNationalDef_2': 971, 'Gender': 'Total male and female', 'ID': 2, 'Periods': '2012', 'PersonalCharacteristics': 'Total personal characteristics'}, #... ] The keyword argument dir can be used to download the data directly to your file system. >>> data = cbsodata.get_data('82070eng', dir="dir_to_save_data") Pandas users Convert the result into a pandas DataFrame. >>> data = pandas.dataframe(cbsodata.get_data('82070eng')) >>> data.head() The list of tables can be turned into a pandas DataFrame as well. >>> tables = pandas.dataframe(cbsodata.get_table_list()) >>> tables.head() 1.2. Usage 5

CBSOData Documentation, Release 0.1 6 Chapter 1. Statistics Netherlands opendata API client for Python

CHAPTER 2 Reference Statistics Netherlands opendata API client for Python cbsodata.download_data(table_id, dir=none, typed=false, select=none, filters=none) Download the CBS data and metadata. Parameters table_id (str) The indentifier of the table. dir (str) Folder to save data to. If not given, data is not stored on disk. typed (bool) Return a typed data table. Default False. select (list) Column label or list of column labels to return. filters (str) Return only rows that agree on the filter. Returns The requested data. Return type list cbsodata.get_data(table_id, dir=none, typed=false, select=none, filters=none) Get the CBS data table. Parameters table_id (str) The indentifier of the table. dir (str) Folder to save data to. If not given, data is not stored on disk. typed (bool) Return a typed data table. Default False. select (list) Column label or list of column labels to return. filters (str) Return only rows that agree on the filter. Returns The requested data. Return type list cbsodata.get_info(table_id) Get information about a table. 7

CBSOData Documentation, Release 0.1 Parameters table_id (str) The indentifier of the table. Returns Table information Return type dict cbsodata.get_meta(table_id, name) Get the metadata of a table. Parameters table_id (str) The indentifier of the table. name (str) The name of the metadata (for example DataProperties). Returns list with metadata (dict type) Return type list cbsodata.get_table_list(select=none, filters=none) Get a list with the available tables. Parameters select (list) Column label or list of column labels to return. filters (str) Return only rows that agree on the filter. Returns Information about the available tables (list of dictionaries) Return type list 8 Chapter 2. Reference

Python Module Index c cbsodata, 7 9

CBSOData Documentation, Release 0.1 10 Python Module Index

Index C cbsodata (module), 7 D download_data() (in module cbsodata), 7 G get_data() (in module cbsodata), 7 get_info() (in module cbsodata), 7 get_meta() (in module cbsodata), 8 get_table_list() (in module cbsodata), 8 11