SSB Datafangst Person Fagfunksjoner
Project description
SSB Datafangst Person Fagfunksjoner
Features
Functions:
hent_status_pd Retrieves status data for a specific InstrumentId and date range from datafangst-person GCS bucket, returning it as a Pandas DataFrame.
hent_status_pd(
instrument_id: str,
start_dato: Optional[date] = None,
slutt_dato: Optional[date] = None,
) -> pd.DataFrame
hent_status_pl Retrieves status data for a specific InstrumentId and date range from datafangst-person GCS bucket, returning it as a Polars DataFrame.
hent_status_pl(
instrument_id: str,
start_dato: Optional[date] = None,
slutt_dato: Optional[date] = None,
) -> pl.DataFrame
hent_utvalg_pd Retrieves utvalg data for a specific InstrumentId from datafangst-person GCS bucket, returning it as a Pandas DataFrame.
hent_utvalg_pd(
instrument_id: str,
) -> pd.DataFrame
hent_utvalg_pl Retrieves utvalg data for a specific InstrumentId from datafangst-person GCS bucket, returning it as a Polars DataFrame.
hent_utvalg_pl(
instrument_id: str,
) -> pl.DataFrame
question_sorting Processes a Paradata DataFrame returning a list of FieldNames in the order they were asked in the survey.
question_sorting(
x: pd.DataFrame,
) -> list[str]
make_bolk Extracts and returns a nested section (bolk) name from a string, such as FieldName.
make_bolk(
row: str,
) -> str
fill_all_para_pl Prepares a Polars DataFrame with paradata for analysis by filling missing values, creating new columns, and transforming the data for analysis.
fill_all_para_pl(
table_df: pl.DataFrame,
) -> pl.DataFrame
fill_para_pl Prepares a Polars DataFrame with paradata for analysis, transforming data as necessary if the data has a min TimeStamp after we started doing fill_para automatically in out iac repo.
fill_para_pl(
table_df: pl.DataFrame,
) -> pl.DataFrame
fill_para_pd Prepares a Pandas DataFrame with paradata for analysis, transforming data as necessary if the data has a min TimeStamp after we started doing fill_para automatically in out iac repo.
fill_para_pd(
table_df: pd.DataFrame,
) -> pd.DataFrame
Requirements
- TODO
Installation
You can install SSB Datafangst Person Fagfunksjoner via pip from PyPI:
pip install ssb-datafangst-person-fagfunksjoner
Usage
Please see the Reference Guide for details.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, SSB Datafangst Person Fagfunksjoner is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from Statistics Norway's SSB PyPI Template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz.
File metadata
- Download URL: ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffe93b49df2761967422f1c7d7cff34bab3166103430429d40087d699fbc691c
|
|
| MD5 |
13ed28d05a10e525bf1e6a611761bbef
|
|
| BLAKE2b-256 |
cd073ac2deaaa8e958a70047833109d91c4aa811231826639731656f52d97a6e
|
Provenance
The following attestation bundles were made for ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz:
Publisher:
release.yml on statisticsnorway/ssb-datafangst-person-fagfunksjoner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz -
Subject digest:
ffe93b49df2761967422f1c7d7cff34bab3166103430429d40087d699fbc691c - Sigstore transparency entry: 151306339
- Sigstore integration time:
-
Permalink:
statisticsnorway/ssb-datafangst-person-fagfunksjoner@3edbf3426b49d9e4ad32a4bce67066910d2d46a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/statisticsnorway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3edbf3426b49d9e4ad32a4bce67066910d2d46a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ssb_datafangst_person_fagfunksjoner-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ssb_datafangst_person_fagfunksjoner-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f16fb23083f4a0b365b0acc764d7711190c74fdc8747942508573293940c43a7
|
|
| MD5 |
f8352af361acba0ebfcd084db10d676c
|
|
| BLAKE2b-256 |
04a70415a766b4b345b8acdc9be94fcab211b401c1a17f3ebf25d96c2796250f
|
Provenance
The following attestation bundles were made for ssb_datafangst_person_fagfunksjoner-0.0.2-py3-none-any.whl:
Publisher:
release.yml on statisticsnorway/ssb-datafangst-person-fagfunksjoner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ssb_datafangst_person_fagfunksjoner-0.0.2-py3-none-any.whl -
Subject digest:
f16fb23083f4a0b365b0acc764d7711190c74fdc8747942508573293940c43a7 - Sigstore transparency entry: 151306341
- Sigstore integration time:
-
Permalink:
statisticsnorway/ssb-datafangst-person-fagfunksjoner@3edbf3426b49d9e4ad32a4bce67066910d2d46a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/statisticsnorway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3edbf3426b49d9e4ad32a4bce67066910d2d46a0 -
Trigger Event:
push
-
Statement type: