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.1.tar.gz (6.6 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxiflow-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 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.1.tar.gz
Algorithm Hash digest
SHA256 a6c4f0dc0f3e86a1825016b0753f52262cc60fe9f1f6f96d44dd8602d5339b27
MD5 699bccadeea5b94bd2879e6d54bd9e34
BLAKE2b-256 0eb988c844ed89e1dcb4cd66e226690603aa3463586c147049dbaf46f19cf885

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxiflow-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f881bdf32165f30c1362baac122dcfb4fb1456ba5ea5c9668dd5df8d55aec81f
MD5 c4edf70393c5a30dac09bf2b7a62c593
BLAKE2b-256 259aac760380681523c4dab1022a550ca8ac286008bf6591ea1dabfdf65c2f74

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