Skip to main content

ISTAT Census Data

CI Documentation Python 3.10+ PyPI version License: MIT

Con ISTAT Census Data puoi ottenere facilmente il set di dati riferiti ai censimenti ISTAT in cui sono stati rilasciati anche i dati delle celle censuarie.

E' possibile scaricare e processare i dati dal 1991 al 2021.

Installazione

pip install istat-census-data

L'installazione base include pyarrow, usato per gli intermedi Parquet/GeoParquet nei workflow H3.

Le elaborazioni H3 usano un bordo robusto boundary_ring_size=3 e scrivono gli indicatori additivi come conteggi interi nella tabella attributi degli esagoni. Nei workflow multi-anno la griglia H3 dell'AOI viene generata una sola volta e riusata per ogni anno censuario, con fingerprint di AoI e parametri per evitare riusi non validi. I backend paralleli H3 pianificano i chunk in batch limitati con max_in_flight_chunks; lo script multi-anno scarta di default i GeoDataFrame annuali dopo la scrittura per ridurre il picco di RAM su AOI grandi.

Per usare il backend opzionale Dask nelle elaborazioni H3 parallele:

pip install "istat-census-data[dask]"

Rinomina del progetto e manutenzione

istat-census-data è la distribuzione PyPI mantenuta.

Il nome della distribuzione PyPI è istat-census-data. A partire dalla versione 2.0.0, l'unico package Python supportato da importare è istat_census_data:

import istat_census_data

La vecchia pagina PyPI istatcelldata non è più mantenuta e non riceverà nuove release, perché il progetto si è spostato su istat-census-data.

Aggiorna le dipendenze di installazione a istat-census-data. Aggiorna anche il codice Python sostituendo import istatcelldata con import istat_census_data.

Tutorial notebook

I notebook sotto notebooks/tutorial/ mostrano download, preprocessamento, finalizzazione, catalogo degli indicatori, comparabilita' tra anni e workflow H3. I notebook inglesi sono in notebooks/tutorial/en/.

!!! INFO

Questo progetto non è collegato ad ISTAT nè supportato da ISTAT ed è una iniziativa autonoma di [Massimiliano Moraca](https://massimilianomoraca.me/).

Questo repository è stato creato grazie a MkDocs, Material for MkDocs e mkdocstring.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

istat_census_data-2.6.3.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

istat_census_data-2.6.3-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

Details for the file istat_census_data-2.6.3.tar.gz.

File metadata

  • Download URL: istat_census_data-2.6.3.tar.gz
  • Upload date:
  • Size: 75.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for istat_census_data-2.6.3.tar.gz
Algorithm Hash digest
SHA256 e1c11d96bda5bfc29541e6e30def9e001c6a3c332ea27cba582a5b7230bfe47e
MD5 cf85e81cfec89fe7c1cf8a88510096f3
BLAKE2b-256 f5205291226ea62b6cef32b0a07befea2ca9a255b40a72b301a5fd36bd784738

See more details on using hashes here.

Provenance

The following attestation bundles were made for istat_census_data-2.6.3.tar.gz:

Publisher: release.yml on MaxDragonheart/istat-census-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file istat_census_data-2.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for istat_census_data-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f705c6b0f30330508c693d246a41c1ef22999a601556b99257e3975066390b2f
MD5 5bb987d232027d27caf1dca761dd3ce6
BLAKE2b-256 37a3a6194b467b020699c548fa6938adfdf687095b90eefb6071a6b16b631a09

See more details on using hashes here.

Provenance

The following attestation bundles were made for istat_census_data-2.6.3-py3-none-any.whl:

Publisher: release.yml on MaxDragonheart/istat-census-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page