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]{.title-ref} (from test PyPi):

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.3.tar.gz (9.1 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.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxiflow-0.1.3.tar.gz
  • Upload date:
  • Size: 9.1 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.3.tar.gz
Algorithm Hash digest
SHA256 94604453d453b838dfbb2e600b00aedb360c82073d1e91b5d5e6be72159755a7
MD5 3d68276b570bb192387c3f1056d88394
BLAKE2b-256 9b5cd1d0253a0e21cd15dd8c4572badeaf858515398419bd5409b184978e9f00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxiflow-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aab57099aa97ab101c7243a0e251b1179d6970a5c2df1a8c8f4473350a85825b
MD5 c014f57aacae8006007d66328b00dfc6
BLAKE2b-256 8401c69210e2ef3cfa478f257f8d8985272beade2fa74cb721c4925837e9e677

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