pdtable
The pdtable Python package offers interfaces to read, write, and manipulate StarTable data.
Documentation
The pdtable documentation is available at pdtable.readthedocs.io.
Examples
Demo: see the pdtable_demo notebook or, if you a Jupyter notebook doesn't do it for you, the notebook's paired script.
Installation
pdtable is available from pypi.org
pip install pdtable
and from conda-forge
conda install pdtable -c conda-forge
Data and metadata: storage and access
Table blocks are stored as TableDataFrame objects, which inherit from pandas.DataFrame but include additional, hidden metadata. This hidden metadata contains all the information from Table blocks that does not fit in a classic Pandas dataframe object: table destinations, column units, table origin, etc.
Data in TableDataFrame objects can be accessed and manipulated using the Pandas API as it the object were a vanilla Pandas dataframe, with all the convenience that this entails.
The StarTable-specific metadata hidden in a TableDataFrame's metadata can in principle be accessed directly; however a much more ergonomic interface is offered via a Table facade object, which is a thin wrapper around TableDataFrame. Table also supports some limited data manipulation, though with the advantage of more easily supporting StarTable-specific metadata; for example, easily specifying column units when adding new columns.
I/O
Readers and writers are available for CSV and Excel, both as files and as streams. Parsing is efficient and, by default, lenient, though this is readily customized.
Reading can also be filtered early, such that only certain block types or tables with certain names get fully parsed. This can reduce reading time substantially when reading e.g. only a few tables from an otherwise large file or stream.
Directive blocks are parsed by the readers, and presented to the client code for application-specific interpretation.
Import from and export to JSON is also supported.
Metadata
Release files for pdtable 1.0.1
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 |
|---|---|---|---|---|
| pdtable-1.0.1.tar.gz | 80.2 kB | Without provenance | Details for pdtable-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdtable-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pdtable-1.0.1-py3-none-any.whl |
Total release size: 181.0 kB
Release files / pdtable-1.0.1.tar.gz
| Download URL | pdtable-1.0.1.tar.gz |
|---|---|
| Size | 80.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbc69b33e0f3ce1dfca842081b1793947102c1e922859626993022329f9f84b4
|
|
BLAKE2b-256 checksum How to use checksums |
6154d12e5dfff50a421e6e7b527bbbfacbf044e7711731ba476a6f6cc28f94f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Release files / pdtable-1.0.1-py3-none-any.whl
| Download URL | pdtable-1.0.1-py3-none-any.whl |
|---|---|
| Size | 100.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
063488cfe052b5dcb58b626b13742817eabc93e41aafad762621248d91cdf0bd
|
|
BLAKE2b-256 checksum How to use checksums |
e8a69ce0ff837eddc8273e5c75192f9381d0cec4a4e6d7a74812e225fdc05a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Security for pdtable 1.0.1
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.