Data Preprocessing flow tool in python
Project description
ProxiFlow
ProxiFlow is a data preparation tool for machine learning that performs data cleaning, normalization, and feature engineering.
Documentation
Read the full documentation here.
Usage
To use ProxiFlow, install it via pip:
pip install proxiflow
You can then call it from the command line:
proxiflow --config-file myconfig.yaml --input-file mydata.csv --output-file cleaned_data.csv
Here's an example of a YAML configuration file:
data_cleaning:
remove_duplicates: True
handle_missing_values:
drop: True
data_normalization: # mandatory
min_max: #mandatory but values are not mandatory. It can be left empty
# Specify columns:
- Age # not mandatory
z_score:
- Price
log:
- Floors
feature_engineering:
...
The above configuration specifies that duplicate rows should be removed and missing values should be dropped.
API
ProxiFlow can also be used as a Python library. Here's an example:
import polars as pl
from proxiflow.config import Config
from proxiflow.core import Cleaner
# Load the data
df = pl.read_csv("mydata.csv")
# Load the configuration
config = Config("myconfig.yaml")
# Preprocess the data
dfl = Cleaner(config)
cleaned_df = dfl.clean_data(df)
# Write the output data
cleaned_df.write_csv("cleaned_data.csv")
TODO
- [x] Data cleaning
- [x] Data normalization
- [ ] Feature engineering
Note: only data cleaning is currently implemented; data normalization and feature engineering are TODO features.
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
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
File details
Details for the file proxiflow-0.1.5.tar.gz.
File metadata
- Download URL: proxiflow-0.1.5.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.10 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7564fc3624a159e62e76e1a398160480eca57c818a3a92741f5a3b98edaf53e
|
|
| MD5 |
8cd134aa7a2fb52ecb45bc3c63e669b3
|
|
| BLAKE2b-256 |
2a18e92dd63cc88a67bfc72b3d85e1240eccb69b57cee5dc38c5f56381439eaa
|
File details
Details for the file proxiflow-0.1.5-py3-none-any.whl.
File metadata
- Download URL: proxiflow-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.10 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a4510740e8fef555ba427034da3ae070a9be186845428a18b20b4cf415fdf09
|
|
| MD5 |
23e9129cda074f817ac57d75f668fd00
|
|
| BLAKE2b-256 |
e2bf244228bed94bcfd1b70df053bef90729ed95898a57abcba513e1e7a2f24d
|