Module for working with PDKF files and Pandas dataframes
Project description
PDKF
Python package for converting PBKF file to DataFrame (pandas) list.
Example
It is simple example for using package. This code converts data from file.pdkf to dataframe_dict.
import pdkf
dataframe_dict = pdkf.read_pdkf('file.pdkf')
for key, dataframe in dataframe_dict.items():
print(key)
print(dataframe.info())
PDKF structure
The file is a ZIP archive. For each dataframe, you need to add two files to the archive:
- META file;
- CSV or JSON file. The META file contains the Pandas data types for the dataframe. For example:
Service.csv
name,purchase_price,description,remainder
sofa_low,10000.00,description,8
armchair_rocking,8000.00,description,14
bed_double,18000.00,description,6
chair_computer, 12000.00,description,2
bed_children,16000.00,description,5
Service.meta
{
"name":"object",
"purchase_price":"float",
"description":"object",
"remainder":"int64"
}
ServiceCost.json
[
{
"sofa_low":[
{
"price":"21000.00",
"date":"2021.01.16"
},
{
"price":"19000.00",
"date":"2021.02.21"
}
]
},
{
"armchair_rocking":[
{
"price":"15000.00",
"date":"2021.01.16"
}
]
}
]
ServiceCost.meta
{
"price":"float",
"date":"datetime64[ns]"
}
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
pdkf-1.1.0.tar.gz
(3.4 kB
view details)
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
pdkf-1.1.0-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file pdkf-1.1.0.tar.gz.
File metadata
- Download URL: pdkf-1.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
933ecf4ddc6ab69fe7b039a83eeecce8df15bf9bf875304d88fc9802b289db02
|
|
| MD5 |
0a619c135f47e0e33d0e65b2b5317b04
|
|
| BLAKE2b-256 |
e1730a012d52bd3f6549043d896969cd5b5e383b4a880c789bf6367a96e72822
|
File details
Details for the file pdkf-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pdkf-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d429e7ac21b316382990f959d48dd6ae9ebf7325f873ee01bcffb44d141a44f2
|
|
| MD5 |
094360def6d07f6a82542af9a47158ce
|
|
| BLAKE2b-256 |
0a2463eea2719dde3a12854a7351b0c8dddc65f9e01fc138b4efe711cba512d4
|