metatables
This is a repository that enables easy data wrangling on files read with the pyreadstat package.
Installation
Run the following to install:
pip install metatables
Usage
from metatables import MetaTable
# Add files from pyreadstat to MetaTable
x = MetaTable(df, meta)
# change val_lab of variables 'F5_01' and 'F5_02'
x.val_lab(['F5_01', 'F5_02'], {1: 'Fish', 2: 'Chips'})
# change var_lab of the same variables to 'New Label'
x.var_lab(['F5_01', 'F5_02'], 'New Label')
# select columns that should be kept in MetaTable
x.select_columns(['F5_01', 'F5_02'])
# show info about variable 'F5_01'
x.show('F5_01')
# write to .sav file
x.write_sav('./filename.sav')
Documentation
The official documentation is hosted on GitHub Pages: https://tez4.github.io/metatables/
Developing
To install the package, along with the tools you need to develop and run tests, run the following in your virtualenv:
pip install -e .[dev]
Add documentation:
pdoc --html --output-dir docs metatables --config show_source_code=False -f
Create the package files:
python setup.py sdist bdist_wheel
Upload to pypi.org:
twine upload dist/*
Metadata
Release files for metatables 0.0.14
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 |
|---|---|---|---|---|
| metatables-0.0.14.tar.gz | 8.0 kB | Without provenance | Details for metatables-0.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metatables-0.0.14-py3-none-any.whl | Python 3 | none | any | Details for metatables-0.0.14-py3-none-any.whl |
Total release size: 16.3 kB
Release files / metatables-0.0.14.tar.gz
| Download URL | metatables-0.0.14.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b332cb6c10ac37ab144f46562a4ff2ac162f5774a30f670938f2dff3cb395600
|
|
BLAKE2b-256 checksum How to use checksums |
15d29e2efc4375887e252c3626a4ca1122de3df1d6144f6662de5fae09aaa97b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.3
|
Release files / metatables-0.0.14-py3-none-any.whl
| Download URL | metatables-0.0.14-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33d14035ac1166bd13b524b29dc7432cf03186087418ac3fc00fc38da5257d77
|
|
BLAKE2b-256 checksum How to use checksums |
5d51853eea2950a16436638b62e2d6f3540ffae34fe7a4623ccb38e822788d03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.3
|
Security for metatables 0.0.14
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.