{ "info": { "author": "Vincent Chen", "author_email": "vincent.zh.chen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: System :: Logging" ], "description": "# redquill\n[![PyPI version shields.io](https://img.shields.io/pypi/v/redquill.svg)](https://pypi.org/project/redquill/)\n[![Build Status](https://travis-ci.org/vincentzhchen/redquill.png?branch=master)](https://travis-ci.org/vincentzhchen/redquill)\n[![codecov](https://codecov.io/gh/vincentzhchen/redquill/coverage.svg?branch=master)](https://codecov.io/gh/vincentzhchen/redquill)\n\nLogging for pandas and more.\n\n## Description\n\nThere are functions specifically to log pandas dataframes as well\nas functions to count up the total number of errors and warnings.\n\n## Dependencies\n- [pandas](https://github.com/pandas-dev/pandas): Tested on 0.20.3\n and higher. May work for earlier versions.\n\n## Example\nFor this example, import both the customlogger and pandas.\n\n```python\nimport redquill as rq\nimport pandas as pd\n```\n\nInitialize the logger. Note, the logger always logs to the console\nby default. You may inrqude a log directory and the log file name,\nwhich will allow the logs to flow into a file as well.\n```python\nlog = rq.redquill()\n```\n\nThe following will log any null values found in ```df```.\n```python\ndf = pd.DataFrame({\"A\": [1, 2, None, 3],\n \"B\": [4, 2, 2, 5]})\nlog.warn_null_values(df=df)\n```\n\nConsole output.\n```\n2018-03-04 01:34:33,162 - 23512 - WARNING - test_redquill.test_warn_null_values - \n A B\n2 NaN 2\n```\n\nThe following will log any duplicates found in column\n```B``` of ```df```.\n```python\ndf = pd.DataFrame({\"A\": [1, 2, None, 3],\n \"B\": [4, 2, 2, 5]})\nlog.warn_duplicate_values(df=df, subset=\"B\", msg=\"Duplicates on B.\")\n```\n\nConsole output.\n```\n2018-03-04 02:29:41,419 - 31825 - WARNING - test_redquill.test_warn_duplicate_values - Duplicates on B.\n A B\n1 2.0 2\n2 NaN 2\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vincentzhchen/redquill", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "redquill", "package_url": "https://pypi.org/project/redquill/", "platform": "", "project_url": "https://pypi.org/project/redquill/", "project_urls": { "Homepage": "https://github.com/vincentzhchen/redquill", "Source": "https://github.com/vincentzhchen/redquill" }, "release_url": "https://pypi.org/project/redquill/0.0.1/", "requires_dist": [ "pandas (>=0.18.0)" ], "requires_python": ">=3.6", "summary": "Logging for pandas and more.", "version": "0.0.1" }, "last_serial": 5350050, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "11341dbaa76e247b39849f72552159dd", "sha256": "29e0f2793241234dcfce751b5bb8adf1205c5b953bb1976d632088822c966634" }, "downloads": -1, "filename": "redquill-0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "11341dbaa76e247b39849f72552159dd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 2510, "upload_time": "2019-05-29T05:43:44", "url": "https://files.pythonhosted.org/packages/46/16/4bd2e3952c57288c83a2586672098ba4c6ebc4b3e425f164acf65afa5a75/redquill-0.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84497a26a7fe03acd34e867f7e037bba", "sha256": "e05b8c5dc4ec0a01f757ca10492468ef3e4828e7faf2022ed171c81c43b59a4d" }, "downloads": -1, "filename": "redquill-0.0.0.tar.gz", "has_sig": false, "md5_digest": "84497a26a7fe03acd34e867f7e037bba", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2373, "upload_time": "2019-05-29T05:43:46", "url": "https://files.pythonhosted.org/packages/00/d4/bb7800289a5a16e2ac76d3bae89e55768db797cf3f10c490fe9f3bf3214b/redquill-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "ca1e30fcf69e82e82cea0c3fbb37792f", "sha256": "817f3d982998543dc0d9226b6dd0d362a6b26f20c0459fd46a7b264c00727756" }, "downloads": -1, "filename": "redquill-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ca1e30fcf69e82e82cea0c3fbb37792f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10731, "upload_time": "2019-06-02T22:45:11", "url": "https://files.pythonhosted.org/packages/5e/1d/875a949c747a0b5e9358913d7d6c72dfce33c8e8c8c3fe904e8b083bdea2/redquill-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a254886b807a92a83b66e56496c5f45", "sha256": "1e60228696beffeb14b4a72ca9c7f2ca6a8d77bbf4c0115a8c2691ea31d68d92" }, "downloads": -1, "filename": "redquill-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4a254886b807a92a83b66e56496c5f45", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5048, "upload_time": "2019-06-02T22:45:13", "url": "https://files.pythonhosted.org/packages/1d/41/6b5d04d92827f16f034d17cf98e072c0e1861d1a0e8fed4d1131080277ef/redquill-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca1e30fcf69e82e82cea0c3fbb37792f", "sha256": "817f3d982998543dc0d9226b6dd0d362a6b26f20c0459fd46a7b264c00727756" }, "downloads": -1, "filename": "redquill-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ca1e30fcf69e82e82cea0c3fbb37792f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10731, "upload_time": "2019-06-02T22:45:11", "url": "https://files.pythonhosted.org/packages/5e/1d/875a949c747a0b5e9358913d7d6c72dfce33c8e8c8c3fe904e8b083bdea2/redquill-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a254886b807a92a83b66e56496c5f45", "sha256": "1e60228696beffeb14b4a72ca9c7f2ca6a8d77bbf4c0115a8c2691ea31d68d92" }, "downloads": -1, "filename": "redquill-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4a254886b807a92a83b66e56496c5f45", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5048, "upload_time": "2019-06-02T22:45:13", "url": "https://files.pythonhosted.org/packages/1d/41/6b5d04d92827f16f034d17cf98e072c0e1861d1a0e8fed4d1131080277ef/redquill-0.0.1.tar.gz" } ] }