SSB Fame To Python
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.
Metadata
Release files for ssb-fame-to-python 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ssb_fame_to_python-1.0.4.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssb_fame_to_python-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / ssb_fame_to_python-1.0.4.tar.gz
| Download URL | ssb_fame_to_python-1.0.4.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
434279eb46d867573df85009e36f8055512647f22032aa84b05abb2a86a92bbf
|
|
BLAKE2b-256 checksum How to use checksums |
e3d98a58562972229a6cafa4b33f46f838bdb0345cd2d8a1e0b8b7621465ab1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / ssb_fame_to_python-1.0.4-py3-none-any.whl
| Download URL | ssb_fame_to_python-1.0.4-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d0181d62c65da5219e57301e386bd99fe7a9d29124005f92f08b8055b37f13b
|
|
BLAKE2b-256 checksum How to use checksums |
357bc1d8f6335732b4c9a96a5807713aaa9e095ffcf8aeb90b2813d869c558ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|