StatsKita: Python toolkit for Indonesian official microdata (SAKERNAS, SUSENAS)
v0.3.0: SAKERNAS (labor) + SUSENAS (poverty/inequality)
What's Supported
| Dataset | Waves | Indicators |
|---|---|---|
| SAKERNAS | 5 (2023-02 → 2025-02) | Labor force, employment, wages |
| SUSENAS | 2 (2023-03, 2024-03) | Poverty (P0, P1, P2), Gini |
Installation
pip install statskita
Quick Start
Single wave:
import statskita as sk
# SAKERNAS
df = sk.load_sakernas(wave="2025-02")
clean_df = sk.wrangle(df, harmonize=True, source_wave="2025-02")
design = sk.declare_survey(clean_df, weight="survey_weight", psu="psu")
results = sk.calculate_indicators(design, ["unemployment_rate", "lfpr"])
# SUSENAS
df = sk.load_susenas(wave="2024-03", module="kp", category="housing")
design = sk.declare_survey(df, weight="WEIND", wave="2024-03")
results = sk.calculate_indicators(design, ["p0", "p1", "p2", "gini"])
Multi-wave comparison:
# SAKERNAS
sakernas_waves = {w: sk.load_sakernas(wave=w) for w in ["2023-02", "2023-08", "2024-02", "2025-02"]}
harmonized = {w: sk.wrangle(df, harmonize=True, source_wave=w) for w, df in sakernas_waves.items()}
sakernas_results = sk.calculate_indicators_multi(harmonized, "all", as_wide=True)
# SUSENAS
susenas_waves = {w: sk.load_susenas(wave=w, module="kp", category="housing") for w in ["2023-03", "2024-03"]}
susenas_results = sk.calculate_indicators_multi(susenas_waves, ["p0", "p1", "p2", "gini"], as_wide=True)
SAKERNAS output:
┌─────────────────────────────────┬──────┬─────────┬─────────┬─────────┬─────────┐
│ indicator ┆ unit ┆ 2023-02 ┆ 2023-08 ┆ 2024-02 ┆ 2025-02 │
├─────────────────────────────────┼──────┼─────────┼─────────┼─────────┼─────────┤
│ labor_force_participation_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ employment_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ unemployment_rate ┆ % ┆ 5.45 ┆ 5.32 ┆ 4.82 ┆ 4.76 │
│ underemployment_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ female_lfpr ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
│ average_wage ┆ M Rp ┆ ... ┆ ... ┆ ... ┆ ... │
│ neet_rate ┆ % ┆ ... ┆ ... ┆ ... ┆ ... │
└─────────────────────────────────┴──────┴─────────┴─────────┴─────────┴─────────┘
SUSENAS output:
┌───────────┬──────┬─────────┬─────────┐
│ indicator ┆ unit ┆ 2023-03 ┆ 2024-03 │
├───────────┼──────┼─────────┼─────────┤
│ p0 ┆ ┆ 9.36 ┆ 9.03 │
│ p1 ┆ ┆ 1.53 ┆ 1.46 │
│ p2 ┆ ┆ 0.38 ┆ 0.35 │
│ gini ┆ ┆ 0.39 ┆ 0.38 │
└───────────┴──────┴─────────┴─────────┘
Features
- Multi-wave analysis: Built-in cross-wave comparison
- Survey-aware: Handles weights, strata, PSU correctly
- Open source: Free, no licensing costs
See examples/ for detailed usage.
Metadata
Release files for statskita 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statskita-0.3.0.tar.gz | 254.9 kB | With provenance | Details for statskita-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statskita-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for statskita-0.3.0-py3-none-any.whl |
Total release size: 334.6 kB
Release files / statskita-0.3.0.tar.gz
| Download URL | statskita-0.3.0.tar.gz |
|---|---|
| Size | 254.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b357b119194a732a9c29d906a5867e3ab6bc6761e6cdd8da5ec3f662bd2f5a9
|
|
BLAKE2b-256 checksum How to use checksums |
de940e18d1067f7955333d8279b20ee0e7480ab43055c652882f25d684f595cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / statskita-0.3.0-py3-none-any.whl
| Download URL | statskita-0.3.0-py3-none-any.whl |
|---|---|
| Size | 79.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03ec9a1124dd066cdb5270f468f176be6507a23fcf6304ad90c71888e2e024f7
|
|
BLAKE2b-256 checksum How to use checksums |
d849aec4e39397a085cd378558d3bcc9a41d98810b5c887a0bf5f9001365d594
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logSecurity for statskita 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for statskita-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.