utipy
--------
Utility functions for python.
Alpha stage. Subject to change.
> https://pypi.python.org/pypi/utipy/
Install from PyPI:
```shell
pip install utipy
```
Install from GitHub:
```shell
python -m pip install git+https://github.com/ludvigolsen/utipy
```
Update this package but not dependencies:
```shell
python -m pip install --force-reinstall --no-deps git+https://github.com/ludvigolsen/utipy
```
### Pandas operations
| Function | Description |
|:------------------------|:------------|
| `makes_up()` | Is a Series made up of a specific value (more than / less than / equal to a threshold) ? |
| `drop()` | Drop rows / columns of dataframe based on the percentile appearance of a specified value |
| `polynomializer()` | Add polynomials to numeric columns, i.e. v1, v1^2, v1^3, ... |
| `resemble()` | Generate a Series resembling another Series |
| `move_column_inplace()` | Move a column to a specified index |
### Data grouping
| Function | Description |
|:--------------|:------------|
| `group()` | Create grouping factors with different methods |
| `partition()` | Create balanced partitions for train/test |
| `fold()` | Create balanced folds for cross-validation |
### Array operations
| Function | Description |
|:---------------------|:------------|
| `blend()` | Blend two arrays of same length |
| `windowed_reverse()` | Reverse array within windows |
| `window()` | Split array into rolling windows |
| `nan_stats()`, `print_nan_stats()` | Get NaN statistics |
### Time operations
| Class | Description |
|:-------------|:------------|
| `StepTimer` | Time a step of code in a `with` context |
| `Timestamps` | Record and keep track of timepoints |
### Path operations
| Class/Function | Description |
|:-----------------|:------------|
| `IOPaths` | Keep track of in-/out paths with checks, directory creation, and a print summary |
| `mk_dir()` | Create directory if it doesn't exist, with messaging of the created path |
| `rm_dir()` | Remove directory if it exists, with messaging of the deleted path |
### String operations
| Function | Description |
|:--------------|:------------|
| `letter_strings()` | Generate n letter strings (aa, ab, ac, ...) |
### Other utilities
| Class/Function | Description |
|:--------------------|:------------|
| `Messenger` | Simplify messaging (print/log) with verbosity and indentation |
Raw data
{
"_id": null,
"home_page": "https://github.com/ludvigolsen/utipy",
"name": "utipy",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": "pandas, numpy, array, ndarray, groups, folds, kfold, partitioning, utilities, logging, time, tools, rolling, windows, time",
"author": "Ludvig Renbo Olsen",
"author_email": "mail@ludvigolsen.dk",
"download_url": "https://files.pythonhosted.org/packages/62/5c/1ed83a61b802c254f31fc0ce135cbf4d3453285d7ee96552afbd9e5cc429/utipy-1.0.3.tar.gz",
"platform": null,
"description": "utipy\n--------\n\nUtility functions for python.\n\nAlpha stage. Subject to change. \n\n> https://pypi.python.org/pypi/utipy/ \n\n\nInstall from PyPI:\n\n```shell\npip install utipy\n```\n\nInstall from GitHub:\n\n```shell\npython -m pip install git+https://github.com/ludvigolsen/utipy\n```\n\nUpdate this package but not dependencies:\n\n```shell\npython -m pip install --force-reinstall --no-deps git+https://github.com/ludvigolsen/utipy\n```\n\n\n### Pandas operations\n\n| Function | Description |\n|:------------------------|:------------|\n| `makes_up()` | Is a Series made up of a specific value (more than / less than / equal to a threshold) ? |\n| `drop()` | Drop rows / columns of dataframe based on the percentile appearance of a specified value |\n| `polynomializer()` | Add polynomials to numeric columns, i.e. v1, v1^2, v1^3, ... |\n| `resemble()` | Generate a Series resembling another Series |\n| `move_column_inplace()` | Move a column to a specified index |\n\n### Data grouping\n\n| Function | Description |\n|:--------------|:------------|\n| `group()` | Create grouping factors with different methods |\n| `partition()` | Create balanced partitions for train/test |\n| `fold()` | Create balanced folds for cross-validation |\n\n### Array operations\n\n| Function | Description |\n|:---------------------|:------------|\n| `blend()` | Blend two arrays of same length |\n| `windowed_reverse()` | Reverse array within windows |\n| `window()` | Split array into rolling windows |\n| `nan_stats()`, `print_nan_stats()` | Get NaN statistics |\n\n### Time operations\n\n| Class | Description |\n|:-------------|:------------|\n| `StepTimer` | Time a step of code in a `with` context |\n| `Timestamps` | Record and keep track of timepoints |\n\n### Path operations\n\n| Class/Function | Description |\n|:-----------------|:------------|\n| `IOPaths` | Keep track of in-/out paths with checks, directory creation, and a print summary |\n| `mk_dir()` | Create directory if it doesn't exist, with messaging of the created path |\n| `rm_dir()` | Remove directory if it exists, with messaging of the deleted path | \n\n### String operations\n\n| Function | Description |\n|:--------------|:------------|\n| `letter_strings()` | Generate n letter strings (aa, ab, ac, ...) |\n\n### Other utilities\n\n| Class/Function | Description |\n|:--------------------|:------------|\n| `Messenger` | Simplify messaging (print/log) with verbosity and indentation |\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Utility functions for python",
"version": "1.0.3",
"project_urls": {
"Homepage": "https://github.com/ludvigolsen/utipy",
"Repository": "https://github.com/ludvigolsen/utipy",
"issues": "https://github.com/ludvigolsen/utipy/issues"
},
"split_keywords": [
"pandas",
" numpy",
" array",
" ndarray",
" groups",
" folds",
" kfold",
" partitioning",
" utilities",
" logging",
" time",
" tools",
" rolling",
" windows",
" time"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e4160182c5da67b3ab64546186e1a295807ea5acc2b2ebc9675e8c0402cb223a",
"md5": "9601c7b2f45a05caafbb83d23636949b",
"sha256": "1f24e25840c58a52f112d00c4c0a3cf2de798c6abedbb833b9e7d184dd72f1cc"
},
"downloads": -1,
"filename": "utipy-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9601c7b2f45a05caafbb83d23636949b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 47942,
"upload_time": "2024-12-05T22:45:49",
"upload_time_iso_8601": "2024-12-05T22:45:49.164063Z",
"url": "https://files.pythonhosted.org/packages/e4/16/0182c5da67b3ab64546186e1a295807ea5acc2b2ebc9675e8c0402cb223a/utipy-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "625c1ed83a61b802c254f31fc0ce135cbf4d3453285d7ee96552afbd9e5cc429",
"md5": "98a28a4d5c514fdf5c27ae3af7a350fd",
"sha256": "c0d13d02014aea62f898a314988d573345f4dcbaf0d13550feb095a47b3dd6aa"
},
"downloads": -1,
"filename": "utipy-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "98a28a4d5c514fdf5c27ae3af7a350fd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 35697,
"upload_time": "2024-12-05T22:45:50",
"upload_time_iso_8601": "2024-12-05T22:45:50.331351Z",
"url": "https://files.pythonhosted.org/packages/62/5c/1ed83a61b802c254f31fc0ce135cbf4d3453285d7ee96552afbd9e5cc429/utipy-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 22:45:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ludvigolsen",
"github_project": "utipy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "utipy"
}