Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request proposes an implementation of the new OData4 protocol used by CBS. CBS migrates from OData version 3 to OData version 4. This migration comes with a lot of other changes. Read about the changes at the website of CBS https://beta.opendata.cbs.nl/OData4/index.html.
All feedback is welcome.
Available functions
Example
Tidy data/Long data
The new data is in a tidy (or long) format. Read more about tidy data: https://en.wikipedia.org/wiki/Tidy_data.
Transform long data into a pivot table with Pandas.
Migration
In a couple of months, we release a version 4.0.0 of this client-side library. This version drops support for OData 3 completely.
cbsodata>=4
Installs version 4 or higher. This version uses OData4 by default.
pip install cbsodata>=4
cbsodata<4
Default version 3 and experimental implementation of OData version 4.
pip install cbsodata<4
Use version 3
Use version 4
Todo
@jolienoomens