Skip to main content

dproc

A convenient data flow to preprocess data using metadata.

Install

pip install dproc

How to use

Import

from dproc import *

Load the definition file

Load the data defintion from the location of your choice (locally, server, cloud).

dproc.meta.definition = pd.read_excel('your-data-definition-file')

This file contains all meta information such as

In order to generate a specifc entity definition ...

dproc.meta.entity = 'your-entity'

and then you can apply the dataflow steps:

entity_cleaned = (entity_raw
                  .step_rename_cols()
                  .step_replace_missing_with_nan()
                  .step_remove_not_needed_cols()
                  .step_remove_rows_with_missing_ids()
                  .step_remove_duplicate_rows()
                  .step_format_dates(cols=['created'])
                  .step_format_dates(cols=['modified'])
                  .step_format_round_numeric_cols(cols=['rating'], decimal_places=2)
                  .step_change_dtypes()
                 )

Metadata

Release files for dproc 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dproc 0.0.2
File Size Uploaded
dproc-0.0.2.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dproc 0.0.2
File Interpreter ABI Platform
dproc-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / dproc-0.0.2.tar.gz

Download URL dproc-0.0.2.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ba92bf50e2e366a4ba716310eb4f9ab8cdee10e4186862519e35f085d39553c
BLAKE2b-256 checksum
How to use checksums
49636d6d43bfd37f09c7a157437c03def8b7bb8d8ac446439079cd42e970cc1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / dproc-0.0.2-py3-none-any.whl

Download URL dproc-0.0.2-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ce053c019895e60f9fed8370935bd5dd06febbbfb35ab7fd6da5b9caf2a686
BLAKE2b-256 checksum
How to use checksums
46b4ba38e87b3d32ac32ee0f05a4f47548856fbbb37dc4b60333861544fda124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page