Giter VIP home page Giter VIP logo

pysquirrel's Introduction

pysquirrel

pysquirrel is a Python package designed to fetch NUTS administrative divisions.

The current NUTS version is valid from 1 January 2024.

From the Eurostat website:

“The NUTS classification (Nomenclature of territorial units for statistics) is a hierarchical system for dividing up the economic territory of the EU for the purpose of: - the collection, development and harmonisation of European regional statistics - socio-economic analyses of the regions

  • NUTS 1: major socio-economic regions
  • NUTS 2: basic regions for the application of regional policies
  • NUTS 3: small regions for specific diagnoses
  • framing of EU regional policies
  • regions eligible for support from cohesion policy have been defined at NUTS 2 level
  • the cohesion report has so far mainly been prepared at NUTS 2 level”

Usage

pysquirrel allows searching the list of all territorial units by specifying the parameters and the values to search as shown below:

>>> import pysquirrel

>>> pysquirrel.nuts.get(country_code="AT")  # gets all regions in Austria

>>> pysquirrel.nuts.get(code="PT191")  # gets the PT191 region

>>> pysquirrel.nuts.get(label="Drenthe")  # gets the Drenthe region

>>> pysquirrel.nuts.get(level=3)  # gets all NUTS3 regions

>>> pysquirrel.nuts.get(parent_code="DE2")  # gets all regions whose parent region is DE2

Eurostat copyright notice

Please note that pyNUTS is not developed, maintained or affiliated with Eurostat. The Eurostat copyright notice applies.

The Eurostat editorial content is licensed under the Creative Commons Attribution 4.0 International licence <https://creativecommons.org/licenses/by/4.0/>__. Reuse of statistical metadata such as the NUTS classification is authorised with due citation of the source.

European Commission, Eurostat, Statistical regions in the European Union and partner countries – NUTS and statistical regions 2021 – 2022 edition, Publications Office of the European Union, 2022, <https://data.europa.eu/doi/10.2785/321792>__

pysquirrel's People

Contributors

dc-almeida avatar guri-x avatar

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.