a crate to convert parquet file(s) to an/a excel/csv file with constant memory in rust
Project description
parquet_to_excel
A tool to convert parquet file to an/a excel/csv file in rust with constant memory, both a single parquet file and a folder of parquet files are supported.
You can also use python or rust to call it. The python package name is parquet_to_excel too. you can install it by pip install parquet_to_excel. If you could not install this package correctly, you can try to install rust and maturin (pip install maturin) first. Then you can try again.
Functions
- parquet_file_to_csv: convert a single parquet file to a csv file
- parquet_files_to_csv: convert a folder of parquet files to a csv file
- parquet_file_to_xlsx: convert a single parquet file to an excel file
- parquet_files_to_xlsx: convert a folder of parquet files to an excel file
Python Examples
- parquet to csv
from parquet_to_excel import parquet_file_to_csv, parquet_files_to_csv
parquet_file_to_csv(
r"D:\Projects\RustTool\data\.duck\yo_dxzh\source=zzz.xlsx\data.parquet",
r"D:\Felix\Desktop\out1.csv",
header_labels={"ddbm": "地点编码"},
select_columns=set(["sheet", "yjkm", "yjkmsm"]))
parquet_files_to_csv(
r"D:\Projects\RustTool\data\.duck\yo_dxzh",
r"D:\Felix\Desktop\out2.csv",
header_labels={"ddbm": "地点编码"},
select_columns=set(["sheet", "yjkm", "yjkmsm"]))
- parquet to xlsx
from parquet_to_excel import parquet_file_to_xlsx, parquet_files_to_xlsx
# write all data into one sheet
parquet_file_to_xlsx(
r"D:\Projects\RustTool\data\.duck\yo_dxzh\source=合并报表公司主体及内部客商编码(管理责任人:刘露).xlsx\data.parquet",
r"D:\Felix\Desktop\out1.xlsx",
sheet_name="data",
header_labels={"ddbm": "地点编码"},
select_columns=set(["sheet", "yjkm", "yjkmsm"]))
# write all data into different sheets by the value of column "sheet"
parquet_files_to_xlsx(
r"D:\Projects\RustTool\data\.duck\yo_dxzh",
r"D:\Felix\Desktop\out2.xlsx",
sheet_column = "sheet",
header_labels={"ddbm": "地点编码"},
select_columns=set(["sheet", "yjkm", "yjkmsm"]))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parquet_to_excel-0.7.2.tar.gz.
File metadata
- Download URL: parquet_to_excel-0.7.2.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
922b4f0e3edb580cd8e7be80c71e1c986b8b79189026c50a83844a09c1d80cab
|
|
| MD5 |
3c64403077086ec3716c7aefb56d6622
|
|
| BLAKE2b-256 |
1efff67a002c866707f883081e3dcb4c231bcc0965fb34a5b0f4564f93122d3e
|
File details
Details for the file parquet_to_excel-0.7.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: parquet_to_excel-0.7.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 10.2 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb56c962d6776ac7ab3ae1d1d72a2dc8ed6e47522177458e16bf186f2074ba81
|
|
| MD5 |
2d074381b5b396eb6fa025a5945441a2
|
|
| BLAKE2b-256 |
24304fc2d4fd8f51b60806289a2db92da33529610801a3b4dae231af4bb4904b
|