Jiboia
Jiboia is a Python package for automatically normalizing and optimizing DataFrames efficiently.
Key features:
- String normalization:
- Removes extra spaces.
- Strips leading and trailing spaces.
- Detects data pollution (e.g., columns that should be numeric but contain strings).
- Type conversion:
- Numeric strings and floats ending in
.0→ integers (int8,int16,int32, …). - Converts floats and integers to the most memory-efficient type.
- Converts strings in various date formats to
datetime(yyyy?mm?dd,dd?mm?yyyy,yyyymmd,dd?mm?yy). - Converts time strings (
hhmm UTC,hh:mm:ss,hh:mm:ss.s) totimedelta.
- Numeric strings and floats ending in
- Null standardization → converts different null representations to
pd.NA. - Automatic CSV detection:
- Detects delimiter.
- Detects encoding.
- Memory optimization:
- Provides memory usage information for DataFrames.
- Converts columns to the most compact types possible.
Example Usage
import jiboia as jb
df = pd.read_csv("data.csv")
df = jb.normalize_df(df)
Metadata
Release files for jiboia 0.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 | |
|---|---|---|---|
| jiboia-0.1.0.tar.gz | 13.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jiboia-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.1 kB
Release files / jiboia-0.1.0.tar.gz
| Download URL | jiboia-0.1.0.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74c76a00762c794e489ca995873727be3c5960b1a1312495c8c429dd0e78e0dc
|
|
BLAKE2b-256 checksum How to use checksums |
22fc4d1cad45f1f47195841af4337c29aeb149878e28d1accb3738cc7ad3c9d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / jiboia-0.1.0-py3-none-any.whl
| Download URL | jiboia-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64ea07ba7588b52080235dcea6e10b821b7ac21f28bc770031b4ecc5c259c215
|
|
BLAKE2b-256 checksum How to use checksums |
cb32c58715d03a21ab6022a35b67ca01291923657253f58e8514ddeacb5aab62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|