Yorbali package for general-purpose data-processing tools
Project description
Yorbali package
for general-purpose data-processing tools
How to install
pip install yorbali
How to upgrade
pip install yorbali --upgrade
How to use
import yorbali or from yorbali import *
Modules included
CreData(rec=100000, dys=1000, dst='01/01/2017', pof=1): Create a dataframe with rec number of records, spread over dys mumber of days starting from date dst, including pof percent of offsetting records. Two records are offsetting if they have same values for "item" fields; and positive "amounts" record is followed by negative "amounts" record.
GetOffs(dfr, cre, cvl, cdt): Identify offsetting records in dataframe dfr, with array cre of grouping fields, array cvl of amount fields, and date field cdt.
GroupDf(dfr, cgp, cvl): Run GroupBy on a datafarme dfr, for all possible combinations of fields specified in array cgp, and evaluate Sum for fields in array cvl.
HighCol(col, dct={"z":"white"}): Use this as an argument in dataframe.style.apply, to highlight columns specified by keys of dictionary dct.
FormDis(dfr, num=5): Format and display num number of rows of dataframe dfr, with float-type values in 2 decimals and yellow color.
Version History
0.0.2 2020-08-30 Added CreData and GetOffs. 0.0.1 2020-08-29 Initial release. Included GroupDf and FormDis.
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
Built Distribution
File details
Details for the file yorbali-0.0.2.tar.gz
.
File metadata
- Download URL: yorbali-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53df25760cf5f3c2febf5f2f9ab1287edd326d5609a2bcb3169e23c67130532a |
|
MD5 | d4fae049187f6992eeeea7251f032602 |
|
BLAKE2b-256 | 0c2168b4bda94c4148e140baeb6424c3a729d445d9a93eee237917b283f246ee |
File details
Details for the file yorbali-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: yorbali-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c61e5437574eadba947c1fb57b371c955aca10faac0a53bc5b11374724932c |
|
MD5 | 6d3091d0526b89c2235ca555114a55aa |
|
BLAKE2b-256 | cc9c81a4d92ca8140dc7596a0e786d49676b68ebf04755948174bf6d0cc91082 |