Utility functions for python
Project description
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
utipy-1.1.0.tar.gz
(37.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
utipy-1.1.0-py3-none-any.whl
(50.5 kB
view details)
File details
Details for the file utipy-1.1.0.tar.gz.
File metadata
- Download URL: utipy-1.1.0.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4135919d0ac8c388065ed399916fe5199a77195ac77ec1e76d384ae8080b4249
|
|
| MD5 |
44c7e62ca89ca864504bd4ac1853215e
|
|
| BLAKE2b-256 |
2d06da47f4cf6e14d181e45475ad36bc18f2f98c19dd242bc470451f2b6e39d2
|
File details
Details for the file utipy-1.1.0-py3-none-any.whl.
File metadata
- Download URL: utipy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a371c8f4cfcef29a98e9f75f02d12bd559f906b0f7e06afe27aba0f24e4ef35c
|
|
| MD5 |
45c0630ad67871b14c2f09bc39287346
|
|
| BLAKE2b-256 |
d9c920ad46d0be6d8b85d4fa5a4c2aae20614b31285f6e54bbd49566e42213cf
|