Giter Club home page Giter Club logo

ssb-api-python-examples's Introduction

ssb-api-python-examples

Jupyter notebooks on how to use Python to access Statstics Norways APIs

Statistics Norway has got three external APIs. The most important one is the API:Create your own dataset or PxWebApi. Here are examples on how to use the APIs from Python.

The plan is to give all examples both in Norwegian and in English.

Examples using the API: Readymade datasets

  • The Norsk / in English a very basic example on Index of retail sales towards .
  • Norsk / English Import a readymade CSV dataset, Main Economic Forecasts, to Pandas. Shows basic plots using Pandas plot and Plotly Express.

Examples using http POST to query API:Create your own datasets PxWebApi

  • Norsk / English http POST example, combines two datasets from two Statbank tables using Pandas pivot, and plot them using Matplotlib.

  • Konkurs-datokonv / English shows the use of a general function for converting the time variable from category to date, and the difference of the two in two plots. The table used is on weekly bankruptcies.

  • nr-dateconv-nor / English shows posting of the same query for GDP changes to tables with different frequency, and the use of the function dateconv() which converts from Categories to dateformat and set a Pandas PeriodIndex.

  • text-code / English shows how to get both text and code from JSON-stat. Example using HS-code from monthly Foreign trade by country.

  • Laks-no / English is a basic example on using http POST to query API:Create your own datasets or PxWebApi.

Examples on Statistics Norways Statistical Classifications and Codelists API

  • Klasskommune examples on how to get classifications, versions, changes, correspondence tables and variants.
  • KOSTRA arter og funksjoner hvordan hente og filtrere KOSTRA arter og funksjoner med definisjoner via Klass API (KOSTRA - Municipality-State-Reporting)

Using R? Try our R-package PxWebApiData

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.