bae0n_utils
Collection of utility functions to be used in Python.
ColoredText(r, g, b, text)
ex: print(ColoredText(255, 0, 0, 'Hello World'))
Displays colored text in the console.
params:
- r - Value from 0-255 for Red
- g - Value from 0-255 for Green
- b - Value from 0-255 for Blue
- text - Text to display with color
Returns: Modified text string, now with the given color.
FitCellsToWindow
ex: FitCellsToWindow()
Fits Jupyter cells to window size.
ActivateCellDoneSound
ex: ActivateCellDoneSound(url='https://bigsoundbank.com/UPLOAD/mp3/0116.mp3')
Plays a sound effect when a cell is complete. Currently kind of buggy with a failed cell.
params:
- url (optional) - url of the sound you want to play. Accepts .wav and .mp3
ActivateCellFailSound
ex: ActivateCellFailSound()
Plays a sound effect if the cell execution fails.
ClearDir
ex: ClearDir('./images')
Removes all files from a directory.
params:
- path - The source directory of the images to turn into a gif. Must include preceding ./, should not include ending /
- safe_del - Prompts user input for confirmation if set to True. Default Value: True
MakeGif
ex: MakeGif('./data', './', 'test', 100, 'jpg')
Turns a directory of images into a gif.
params:
- source_dir - The source directory of the images to turn into a gif. Must include preceding ./
- out_dir - The directory to save the gif to. Must include preceding ./
- gif_name - The name of the gif. Do not include filetype.
- duration - Number of frames in the gif...I think.
- file_type - File extension for the images. Do not include preceding .
CorrMatrixAnalysis
Displays in depth analysis of the correlation between features. Currently only addresses correlation of dependent feature to independent features, but will be updated soon.
params:
- df - The dataframe to analyze.
- dep_feature - The dependent feature.
example call:
df = pd.read_csv('Iris.csv')
CorrMatrixAnalysis(df, 'species')
Example output:
Features With High Correlation to diagnosis:
-0.79 - concave points_worst
-0.78 - perimeter_worst
-0.78 - concave points_mean
-0.78 - radius_worst
-0.74 - perimeter_mean
-0.73 - area_worst
-0.73 - radius_mean
-0.71 - area_mean
Features With Moderate Correlation to diagnosis:
-0.70 - concavity_mean
-0.66 - concavity_worst
-0.60 - compactness_mean
-0.59 - compactness_worst
-0.57 - radius_se
-0.56 - perimeter_se
-0.55 - area_se
Features With No Correlation to diagnosis:
-0.29 - compactness_se
-0.25 - concavity_se
-0.08 - fractal_dimension_se
0.07 - smoothness_se
-0.04 - id
0.01 - fractal_dimension_mean
0.01 - texture_se
0.01 - symmetry_se
Many thanks to my muse for the constant inspiration, great ideas, and support <3
Metadata
Release files for bae0n-utils 0.1.2
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 | |
|---|---|---|---|---|
| bae0n-utils-0.1.2.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bae0n_utils-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / bae0n-utils-0.1.2.tar.gz
| Download URL | bae0n-utils-0.1.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f25b2d963884c43b922eac11afa693d9f2d2a036be1d1819493b4ccb9e9b5c9
|
|
BLAKE2b-256 checksum How to use checksums |
84f60af452486b48a21b3e8bd876561f7dfd919ef9bb3dc7abf44f4b08bfb4ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / bae0n_utils-0.1.2-py3-none-any.whl
| Download URL | bae0n_utils-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a90695826efe32db5267884b35a6c8e201623be01b3719f4e7bcd8df93406c7
|
|
BLAKE2b-256 checksum How to use checksums |
871b0b194f611d06f18f08738dcd4d4e61969142ea9262ac57696ea5eff9d642
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for bae0n-utils 0.1.2
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.