Skip to main content

Data Preprocessing flow tool in python

Project description

ProxiFlow is a data preparation tool for machine learning that performs data cleaning, normalization, and feature engineering.

Usage

To use ProxiFlow, install it via pip (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:
  ...

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 DataFlow

# Load the data
df = pl.read_csv("mydata.csv")

# Load the configuration
config = Config("myconfig.yaml")

# Preprocess the data
dfl = DataFlow(config)
cleaned_df = dfl.clean_data(df)

# Write the output data
cleaned_df.write_csv("cleaned_data.csv")

TODO

  • [x] Data cleaning

  • [ ] 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.2.tar.gz (6.8 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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxiflow-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 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.2.tar.gz
Algorithm Hash digest
SHA256 49d4dc7e697b2eb65c1a3c47989047f8792bea20c69c150dd31af9b8daaecba3
MD5 925af201309359d091de226b1ddf13d2
BLAKE2b-256 450bc9a8eaf935fa7ad62d00042aa06cc2ed64d08d5a39c47cd3b7667bd5c0ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxiflow-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 306f5235992807d8687ecdab2cc3404cb298f2825fe235d4ead37807ced86713
MD5 f8a4817ad25fc9d14026d3a9cf61051e
BLAKE2b-256 37839f097b9149d863c7643d210cf767964b486331f13adcce633323d4b814db

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