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.
Metadata
Release files for ssb-datafangst-person-fagfunksjoner 0.0.3
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 |
|---|---|---|---|---|
| ssb_datafangst_person_fagfunksjoner-0.0.3.tar.gz | 9.5 kB | With provenance | Details for ssb_datafangst_person_fagfunksjoner-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ssb_datafangst_person_fagfunksjoner-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ssb_datafangst_person_fagfunksjoner-0.0.3-py3-none-any.whl |
Total release size: 18.2 kB
Release files / ssb_datafangst_person_fagfunksjoner-0.0.3.tar.gz
| Download URL | ssb_datafangst_person_fagfunksjoner-0.0.3.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd7a2c58cf3964659c3cd70a88ff4de15e17445c6910e878084450bfe3e1ac8f
|
|
BLAKE2b-256 checksum How to use checksums |
1d25188cc9ec0e859e057938129c812e78c913cae6eaefacea5af7e3023161f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Feb 4, 2025.
Transparency logRelease files / ssb_datafangst_person_fagfunksjoner-0.0.3-py3-none-any.whl
| Download URL | ssb_datafangst_person_fagfunksjoner-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fc951da6e0298a983bd8e0ee46413a1f2b593071cdbb64879899f3586a71d01
|
|
BLAKE2b-256 checksum How to use checksums |
f4bde7987b704aa1d8493a0561a5ea3c3bea097353fc57c113e8b83aca62b242
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Feb 4, 2025.
Transparency logSecurity for ssb-datafangst-person-fagfunksjoner 0.0.3
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 ssb_datafangst_person_fagfunksjoner-0.0.3.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 Feb 4, 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.