Name | pdkf JSON |
Version |
1.1.0
JSON |
| download |
home_page | https://github.com/KerrLiGit/pdkf |
Summary | Module for working with PDKF files and Pandas dataframes |
upload_time | 2023-11-10 11:07:52 |
maintainer | |
docs_url | None |
author | KerrLi |
requires_python | >=3.7 |
license | |
keywords |
pdkf
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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]"
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/KerrLiGit/pdkf",
"name": "pdkf",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "pdkf",
"author": "KerrLi",
"author_email": "bogatyreva_aa@mail.ru",
"download_url": "https://files.pythonhosted.org/packages/e1/73/0a012d52bd3f6549043d896969cd5b5e383b4a880c789bf6367a96e72822/pdkf-1.1.0.tar.gz",
"platform": null,
"description": "# PDKF\nPython package for converting PBKF file to DataFrame (pandas) list.\n# Example\nIt is simple example for using package. This code converts data from file.pdkf to dataframe_dict.\n```\nimport pdkf\n\ndataframe_dict = pdkf.read_pdkf('file.pdkf')\nfor key, dataframe in dataframe_dict.items():\n print(key)\n print(dataframe.info())\n```\n# PDKF structure\nThe file is a ZIP archive. For each dataframe, you need to add two files to the archive: \n* META file;\n* CSV or JSON file.\nThe META file contains the Pandas data types for the dataframe. For example:\n#### Service.csv\n```\nname,purchase_price,description,remainder\nsofa_low,10000.00,description,8\narmchair_rocking,8000.00,description,14\nbed_double,18000.00,description,6\nchair_computer, 12000.00,description,2\nbed_children,16000.00,description,5\n```\n#### Service.meta\n```\n{\n \"name\":\"object\",\n \"purchase_price\":\"float\",\n \"description\":\"object\",\n \"remainder\":\"int64\"\n}\n```\n#### ServiceCost.json\n```\n[\n {\n \"sofa_low\":[\n {\n \"price\":\"21000.00\",\n \"date\":\"2021.01.16\"\n },\n {\n \"price\":\"19000.00\",\n \"date\":\"2021.02.21\"\n }\n ]\n },\n {\n \"armchair_rocking\":[\n {\n \"price\":\"15000.00\",\n \"date\":\"2021.01.16\"\n }\n ]\n }\n]\n```\n#### ServiceCost.meta\n```\n{\n \"price\":\"float\",\n \"date\":\"datetime64[ns]\"\n}\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Module for working with PDKF files and Pandas dataframes",
"version": "1.1.0",
"project_urls": {
"Documentation": "https://github.com/KerrLiGit/pdkf/wiki",
"Homepage": "https://github.com/KerrLiGit/pdkf"
},
"split_keywords": [
"pdkf"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0a2463eea2719dde3a12854a7351b0c8dddc65f9e01fc138b4efe711cba512d4",
"md5": "094360def6d07f6a82542af9a47158ce",
"sha256": "d429e7ac21b316382990f959d48dd6ae9ebf7325f873ee01bcffb44d141a44f2"
},
"downloads": -1,
"filename": "pdkf-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "094360def6d07f6a82542af9a47158ce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 3429,
"upload_time": "2023-11-10T11:07:51",
"upload_time_iso_8601": "2023-11-10T11:07:51.049638Z",
"url": "https://files.pythonhosted.org/packages/0a/24/63eea2719dde3a12854a7351b0c8dddc65f9e01fc138b4efe711cba512d4/pdkf-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e1730a012d52bd3f6549043d896969cd5b5e383b4a880c789bf6367a96e72822",
"md5": "0a619c135f47e0e33d0e65b2b5317b04",
"sha256": "933ecf4ddc6ab69fe7b039a83eeecce8df15bf9bf875304d88fc9802b289db02"
},
"downloads": -1,
"filename": "pdkf-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "0a619c135f47e0e33d0e65b2b5317b04",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3356,
"upload_time": "2023-11-10T11:07:52",
"upload_time_iso_8601": "2023-11-10T11:07:52.685396Z",
"url": "https://files.pythonhosted.org/packages/e1/73/0a012d52bd3f6549043d896969cd5b5e383b4a880c789bf6367a96e72822/pdkf-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-10 11:07:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KerrLiGit",
"github_project": "pdkf",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pdkf"
}