{"id":14970674,"url":"https://github.com/queirozfcom/python-ds-util","last_synced_at":"2025-10-19T08:23:18.927Z","repository":{"id":49051966,"uuid":"140504833","full_name":"queirozfcom/python-ds-util","owner":"queirozfcom","description":"Collection of useful helper methods for interactive data science work in python. Usually on jupyter notebooks, using the basic python scientific stack.","archived":false,"fork":false,"pushed_at":"2021-11-01T02:37:53.000Z","size":931,"stargazers_count":4,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-28T13:22:42.942Z","etag":null,"topics":["data-science","matplotlib","pandas","python","scikit-learn","utils"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/queirozfcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-11T01:18:26.000Z","updated_at":"2021-11-01T02:35:57.000Z","dependencies_parsed_at":"2022-09-10T22:00:45.005Z","dependency_job_id":null,"html_url":"https://github.com/queirozfcom/python-ds-util","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queirozfcom%2Fpython-ds-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queirozfcom%2Fpython-ds-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queirozfcom%2Fpython-ds-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queirozfcom%2Fpython-ds-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queirozfcom","download_url":"https://codeload.github.com/queirozfcom/python-ds-util/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219862887,"owners_count":16555951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","matplotlib","pandas","python","scikit-learn","utils"],"created_at":"2024-09-24T13:43:58.421Z","updated_at":"2025-10-19T08:23:13.884Z","avatar_url":"https://github.com/queirozfcom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-ds-util\n\n[![PyPI version](https://badge.fury.io/py/dsutil.png)](https://badge.fury.io/py/dsutil)\n\n## Installation\n\nThe library is available on **pip**:\n\n`pip install dsutil`\n\n## Examples\n\nFor full usage examples see notebooks under [the examples directory](https://github.com/queirozfcom/python-ds-util/tree/master/examples).\n\n### Plotting\n\nFull examples for plotting [here](https://github.com/queirozfcom/python-ds-util/tree/master/examples/examples-plotting.ipynb)\n\n- `add_grid()`: reasonable default grid settings, with weak grey lines, light alpha, etc.\n   \n  ```python\n  import numpy as np\n  import matplotlib.pyplot as plt\n  from dsutil.plotting import add_grid\n  \n  x = np.linspace(0.0,100,10)\n  y = np.random.uniform(low=0,high=10,size=10)\n\n  plt.bar(x,y)\n  \n  add_grid()\n  ```\n   \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/7ZnSaZq.png\" width=\"350\"\u003e\n  \u003cimg src=\"https://i.imgur.com/vOq2ZMZ.png\" width=\"350\"\u003e\n\u003c/p\u003e\n\n- `add_value_labels()` annotates barplots, line plots and scatter plots with values for the coordinates\n\n  ```python\n  import numpy as np\n  import matplotlib.pyplot as plt\n  from dsutil.plotting import add_value_labels\n  \n  x = np.linspace(0.0,100,10)\n  y = np.random.uniform(low=0,high=10,size=10)\n\n  plt.bar(x,y)\n  \n  add_value_labels()\n  ```\n   \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/J8iZuK6.png\" width=\"350\"\u003e\n  \u003cimg src=\"https://i.imgur.com/Wq9eKQm.png\" width=\"350\"\u003e\n\u003c/p\u003e\n\n- `format_yaxis_percentage()`: turns values between 0 and 1 in y-axis into percentages\n\n  ```python\n  import numpy as np\n  import matplotlib.pyplot as plt\n  from dsutil.plotting import format_yaxis_percentage\n  \n  x = np.linspace(0.0,100,10)\n  y = np.random.uniform(low=0,high=1,size=10)\n    \n  plt.bar(x,y)\n  plt.yticks(np.arange(0,1.01,0.1))\n\n  format_yaxis_percentage()\n  ```\n  \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/XIIJgM8.png\" width=\"350\"\u003e\n  \u003cimg src=\"https://i.imgur.com/ybDW5hq.png\" width=\"350\"\u003e\n\u003c/p\u003e\n\n- `format_yaxis_thousands()`: uses commas as thousands separator in the y-axis labels\n\n  ```python\n  import numpy as np\n  import matplotlib.pyplot as plt\n  from dsutil.plotting import format_yaxis_thousands\n  \n  x = np.linspace(0.0,100,10)\n  y = np.random.uniform(low=10000,high=100000,size=10)\n\n  plt.bar(x,y)\n  plt.yticks(np.arange(0,100001,10000))\n\n  format_yaxis_thousands()\n  ```\n  \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/1g0WYKO.png\" width=\"350\"\u003e\n  \u003cimg src=\"https://i.imgur.com/IyTMmbr.png\" width=\"350\"\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueirozfcom%2Fpython-ds-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueirozfcom%2Fpython-ds-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueirozfcom%2Fpython-ds-util/lists"}