Skip to main content

Data Preprocessing flow tool in python

Project description

image Documentation Status PyPI download month Maintenance PyPI license tests

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxiflow-0.1.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxiflow-0.1.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file proxiflow-0.1.4.tar.gz.

File metadata

  • Download URL: proxiflow-0.1.4.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

Hashes for proxiflow-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3e4d885480b8919f20dc1821c19cac45529b7af201efde07643c8dfb15ded153
MD5 e1612c5696bd36fc1d34f2df987b7589
BLAKE2b-256 478327dd516c03f6e7a89ff72b7f3e2a66590bc6545552766a794703597b78db

See more details on using hashes here.

File details

Details for the file proxiflow-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: proxiflow-0.1.4-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

Hashes for proxiflow-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f1800c35c30833749219c4dc74d4f90b7c74379edb782dee1c4e09282ec21f3f
MD5 85704fe1b7c7c185bea4ca230fa4cd14
BLAKE2b-256 53cbdf4f8b63f108f4ef0418e8f707722a0e830b2ddae09345a2c87da634a58f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page