Arrow table dict conversion
A Python package for converting dictionaries to Apache Arrow tables, and vice versa.
Installation
pip install arrow-table-dict-conversion
Usage
From dict to table:
from arrow_table_dict_conversion import dict_to_pa_table
data = {
"col1": [1, 2, 3],
"col2": ["a", "b", "c"]
}
table = dict_to_pa_table(data)
print(table)
From table to dict:
from arrow_table_dict_conversion import unpack_pa_table_dict
# Create an example Arrow table
data = {
"col1": [1, 2, 3],
"col2": ["a", "b", "c"]
}
table = pa.table(data)
# Convert Arrow table back to dict
result_dict = unpack_pa_table_dict(table)
print(result_dict)
Requirements
- Python 3.7+
- pyarrow
Metadata
Release files for arrow-table-dict-conversion 0.1.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 | |
|---|---|---|---|
| arrow_table_dict_conversion-0.1.3.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arrow_table_dict_conversion-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / arrow_table_dict_conversion-0.1.3.tar.gz
| Download URL | arrow_table_dict_conversion-0.1.3.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b166a76e116f838ab483b69ddb5e815912de4eb3fe755add8e6850390b349edd
|
|
BLAKE2b-256 checksum How to use checksums |
c59ac9745bdfa643757e00205b350009e8134bf5b8322d5807f12cf23690e0c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / arrow_table_dict_conversion-0.1.3-py3-none-any.whl
| Download URL | arrow_table_dict_conversion-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de0aead7edb5e5cc9382d6557dc5c9a73e47f64b570039fcbe3a22d6ec36b3ac
|
|
BLAKE2b-256 checksum How to use checksums |
cc07d84bfa54cedca095c5eaf9eaf9cda1ac84ab7f6616d89641eb4f618db67f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|