# spark_gaps_date_rorc_tools
[![Github License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Updates](https://pyup.io/repos/github/woctezuma/google-colab-transfer/shield.svg)](pyup)
[![Python 3](https://pyup.io/repos/github/woctezuma/google-colab-transfer/python-3-shield.svg)](pyup)
[![Code coverage](https://codecov.io/gh/woctezuma/google-colab-transfer/branch/master/graph/badge.svg)](codecov)
spark_gaps_date_rorc_tools is a Python library that implements get gaps dates
## Installation
The code is packaged for PyPI, so that the installation consists in running:
```sh
pip install spark-gaps-date-rorc-tools
```
## Usage
wrapper take gaps dates
```sh
config.yaml
===========
conf:
t_psan_test:
table_path: "/data/master/psan/data/t_psan_test/"
supplies : [
"/data/master/psan/data/t_ksag_test/",
"/data/master/psan/data/t_psan_test/"
]
t_kctk_cust_rating_atrb:
table_path: ""
supplies : []
example1: file.py
=================
from spark_gaps_date_rorc_tools import show_gaps_date
df_pivot = show_gaps_date(spark=spark,
config_path_name="config.yaml",
table_rorc=["t_psan_xxx"]
hdfs_uri="hdfs://pedaaslive.scmx2p100.isi",
filter_date_initial="202101",
filter_date_final="202112")
Spark Style Dataframe: file.py
==============================
df_pivot.show2(limit=10)
Pandas Style Dataframe: file.py
==============================
df_pivot2 = df_pivot.toPandas()
df_pivot2.show2()
```
## License
[Apache License 2.0](https://www.dropbox.com/s/8t6xtgk06o3ij61/LICENSE?dl=0).
## New features v1.0
## BugFix
- choco install visualcpp-build-tools
## Reference
- Jonathan Quiza [github](https://github.com/jonaqp).
- Jonathan Quiza [RumiMLSpark](http://rumi-ml.herokuapp.com/).
- Jonathan Quiza [linkedin](https://www.linkedin.com/in/jonaqp/).
Raw data
{
"_id": null,
"home_page": "https://github.com/jonaqp/spark_gaps_date_rorc_tools/",
"name": "spark-gaps-date-rorc-tools",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "spark, gaps, date",
"author": "Jonathan Quiza",
"author_email": "jony327@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c8/ea/210bedceb348fbedfa8c1f21e1b76f2724d111141db0df07d408551fed3d/spark_gaps_date_rorc_tools-0.2.1.tar.gz",
"platform": null,
"description": "# spark_gaps_date_rorc_tools\r\n\r\n\r\n[![Github License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\r\n[![Updates](https://pyup.io/repos/github/woctezuma/google-colab-transfer/shield.svg)](pyup)\r\n[![Python 3](https://pyup.io/repos/github/woctezuma/google-colab-transfer/python-3-shield.svg)](pyup)\r\n[![Code coverage](https://codecov.io/gh/woctezuma/google-colab-transfer/branch/master/graph/badge.svg)](codecov)\r\n\r\n\r\n\r\n\r\nspark_gaps_date_rorc_tools is a Python library that implements get gaps dates\r\n## Installation\r\n\r\nThe code is packaged for PyPI, so that the installation consists in running:\r\n```sh\r\npip install spark-gaps-date-rorc-tools \r\n```\r\n\r\n\r\n## Usage\r\n\r\nwrapper take gaps dates\r\n\r\n```sh\r\nconfig.yaml\r\n===========\r\n conf:\r\n t_psan_test:\r\n table_path: \"/data/master/psan/data/t_psan_test/\"\r\n supplies : [\r\n \"/data/master/psan/data/t_ksag_test/\",\r\n \"/data/master/psan/data/t_psan_test/\"\r\n ]\r\n t_kctk_cust_rating_atrb:\r\n table_path: \"\"\r\n supplies : []\r\n\r\n\r\n\r\nexample1: file.py\r\n=================\r\nfrom spark_gaps_date_rorc_tools import show_gaps_date\r\ndf_pivot = show_gaps_date(spark=spark,\r\n config_path_name=\"config.yaml\",\r\n table_rorc=[\"t_psan_xxx\"]\r\n hdfs_uri=\"hdfs://pedaaslive.scmx2p100.isi\",\r\n filter_date_initial=\"202101\",\r\n filter_date_final=\"202112\")\r\n\r\nSpark Style Dataframe: file.py\r\n============================== \r\ndf_pivot.show2(limit=10)\r\n\r\n\r\n\r\nPandas Style Dataframe: file.py\r\n============================== \r\ndf_pivot2 = df_pivot.toPandas() \r\ndf_pivot2.show2()\r\n\r\n```\r\n\r\n## License\r\n\r\n[Apache License 2.0](https://www.dropbox.com/s/8t6xtgk06o3ij61/LICENSE?dl=0).\r\n\r\n\r\n## New features v1.0\r\n\r\n \r\n## BugFix\r\n- choco install visualcpp-build-tools\r\n\r\n\r\n\r\n## Reference\r\n\r\n - Jonathan Quiza [github](https://github.com/jonaqp).\r\n - Jonathan Quiza [RumiMLSpark](http://rumi-ml.herokuapp.com/).\r\n - Jonathan Quiza [linkedin](https://www.linkedin.com/in/jonaqp/).\r\n\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "spark_gaps_date_rorc_tools",
"version": "0.2.1",
"project_urls": {
"Download": "https://github.com/jonaqp/spark_gaps_date_rorct_tools/archive/main.zip",
"Homepage": "https://github.com/jonaqp/spark_gaps_date_rorc_tools/"
},
"split_keywords": [
"spark",
" gaps",
" date"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "010308d3fc8d5bf04e429e2f8820330d720a85ea8e660c493933b5defccbbcc7",
"md5": "c1154390bb7026a44ca412bb521d2c35",
"sha256": "699c4d3f181e09c4708883228ffbfa94f70306019bf235d9385e4139d5301c75"
},
"downloads": -1,
"filename": "spark_gaps_date_rorc_tools-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c1154390bb7026a44ca412bb521d2c35",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10276,
"upload_time": "2024-04-07T06:04:20",
"upload_time_iso_8601": "2024-04-07T06:04:20.885625Z",
"url": "https://files.pythonhosted.org/packages/01/03/08d3fc8d5bf04e429e2f8820330d720a85ea8e660c493933b5defccbbcc7/spark_gaps_date_rorc_tools-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c8ea210bedceb348fbedfa8c1f21e1b76f2724d111141db0df07d408551fed3d",
"md5": "35303311a22a9a75c288d4e4da538b7c",
"sha256": "481d0fd96cb4feb6c97d89c75119fbbef1365ed526c6af16e2413196f9c87a1a"
},
"downloads": -1,
"filename": "spark_gaps_date_rorc_tools-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "35303311a22a9a75c288d4e4da538b7c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8979,
"upload_time": "2024-04-07T06:04:22",
"upload_time_iso_8601": "2024-04-07T06:04:22.598418Z",
"url": "https://files.pythonhosted.org/packages/c8/ea/210bedceb348fbedfa8c1f21e1b76f2724d111141db0df07d408551fed3d/spark_gaps_date_rorc_tools-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-07 06:04:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jonaqp",
"github_project": "spark_gaps_date_rorc_tools",
"github_not_found": true,
"lcname": "spark-gaps-date-rorc-tools"
}