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.3.tar.gz (9.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.3.tar.gz.

File metadata

File hashes

Hashes for ssb_datafangst_person_fagfunksjoner-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bd7a2c58cf3964659c3cd70a88ff4de15e17445c6910e878084450bfe3e1ac8f
MD5 f88c2d6a8d6c18c63050f4d729e058a5
BLAKE2b-256 1d25188cc9ec0e859e057938129c812e78c913cae6eaefacea5af7e3023161f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssb_datafangst_person_fagfunksjoner-0.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ssb_datafangst_person_fagfunksjoner-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8fc951da6e0298a983bd8e0ee46413a1f2b593071cdbb64879899f3586a71d01
MD5 1eae96eaf68daa971fd144601b2f7ffe
BLAKE2b-256 f4bde7987b704aa1d8493a0561a5ea3c3bea097353fc57c113e8b83aca62b242

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssb_datafangst_person_fagfunksjoner-0.0.3-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