Metadata-Version: 2.1
Name: pdkf
Version: 1.1.0
Summary: Module for working with PDKF files and Pandas dataframes
Home-page: https://github.com/KerrLiGit/pdkf
Author: KerrLi
Author-email: bogatyreva_aa@mail.ru
Project-URL: Documentation, https://github.com/KerrLiGit/pdkf/wiki
Keywords: pdkf
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas (>=2.1.0)
Requires-Dist: zipp (>=3.17.0)

# 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]"
}
```
