Skip to main content

SSB Fame To Python

Project description

SSB Fame To Python

PyPI Status Python Version License

Documentation Tests Coverage Quality Gate Status

pre-commit Black Ruff Poetry

Features

The package is imported using

from fython import fame_to_pandas, fame_to_csv

To load data from Fame-databases into a Pandas DataFrame, use

df = fame_to_pandas(['path/to/database1', 'path/to/database2', ...], 'q', '2023:1', '2024:4', 'your_search_query')

To load write data from Fame-databases to a csv-file, use

fame_to_csv(['path/to/database1', 'path/to/database2', ...], 'q', '2023:1', '2024:4', 'your_search_query', 'path/to/csv-file')

The search query should containg text and/or the wildcards "?" and/or "^" (any number of characters and exactly one character, respectively). Both functions have an optional decimals option (default is 10). fame_to_pandas has the option dtype (default is np.float128).

Requirements

  • python-versions = ">=3.6,<4.0"
  • pandas = ">=1.1.5"

Installation

pip install ssb-fame-to-python

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, SSB Fame To Python 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_fame_to_python-1.0.4.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

ssb_fame_to_python-1.0.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file ssb_fame_to_python-1.0.4.tar.gz.

File metadata

  • Download URL: ssb_fame_to_python-1.0.4.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for ssb_fame_to_python-1.0.4.tar.gz
Algorithm Hash digest
SHA256 434279eb46d867573df85009e36f8055512647f22032aa84b05abb2a86a92bbf
MD5 5f09156174a453a9d34a638630c46f7d
BLAKE2b-256 e3d98a58562972229a6cafa4b33f46f838bdb0345cd2d8a1e0b8b7621465ab1e

See more details on using hashes here.

File details

Details for the file ssb_fame_to_python-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ssb_fame_to_python-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0181d62c65da5219e57301e386bd99fe7a9d29124005f92f08b8055b37f13b
MD5 5931358367beb4c78790b4a779172cde
BLAKE2b-256 357bc1d8f6335732b4c9a96a5807713aaa9e095ffcf8aeb90b2813d869c558ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page