utipy
Utility functions for python.
Alpha stage. Subject to change.
Install from PyPI:
pip install utipy
Install from GitHub:
python -m pip install git+https://github.com/ludvigolsen/utipy
Update this package but not dependencies:
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 |
Metadata
Release files for utipy 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| utipy-1.1.0.tar.gz | 37.3 kB | Without provenance | Details for utipy-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| utipy-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for utipy-1.1.0-py3-none-any.whl |
Total release size: 87.7 kB
Release files / utipy-1.1.0.tar.gz
| Download URL | utipy-1.1.0.tar.gz |
|---|---|
| Size | 37.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4135919d0ac8c388065ed399916fe5199a77195ac77ec1e76d384ae8080b4249
|
|
BLAKE2b-256 checksum How to use checksums |
2d06da47f4cf6e14d181e45475ad36bc18f2f98c19dd242bc470451f2b6e39d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0
|
Release files / utipy-1.1.0-py3-none-any.whl
| Download URL | utipy-1.1.0-py3-none-any.whl |
|---|---|
| Size | 50.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a371c8f4cfcef29a98e9f75f02d12bd559f906b0f7e06afe27aba0f24e4ef35c
|
|
BLAKE2b-256 checksum How to use checksums |
d9c920ad46d0be6d8b85d4fa5a4c2aae20614b31285f6e54bbd49566e42213cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0
|
Security for utipy 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.