Skip to main content

SSB Datafangst Person Fagfunksjoner

Project description

SSB Datafangst Person Fagfunksjoner

PyPI Status Python Version License

Documentation Tests Coverage Quality Gate Status

pre-commit Black Ruff Poetry

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


Download files

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

Source Distribution

ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz.

File metadata

File hashes

Hashes for ssb_datafangst_person_fagfunksjoner-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ffe93b49df2761967422f1c7d7cff34bab3166103430429d40087d699fbc691c
MD5 13ed28d05a10e525bf1e6a611761bbef
BLAKE2b-256 cd073ac2deaaa8e958a70047833109d91c4aa811231826639731656f52d97a6e

See more details on using hashes here.

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

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

File details

Details for the file ssb_datafangst_person_fagfunksjoner-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ssb_datafangst_person_fagfunksjoner-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f16fb23083f4a0b365b0acc764d7711190c74fdc8747942508573293940c43a7
MD5 f8352af361acba0ebfcd084db10d676c
BLAKE2b-256 04a70415a766b4b345b8acdc9be94fcab211b401c1a17f3ebf25d96c2796250f

See more details on using hashes here.

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

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