Skip to main content

PyCSVDataCleaner

PyCSVDataCleaner is a simple Python package designed to clean CSV files. It helps you preprocess your data by:

  • Removing duplicate rows
  • Removing rows with missing values
  • Removing constant columns

The package is easy to use and works with CSV files containing any kind of data. It is ideal for automating the data cleaning process during your machine learning or data analysis workflow.


Features

  • Remove Duplicate Rows: Automatically removes duplicate rows from the dataset.
  • Remove Rows with Missing Values: Cleans your dataset by eliminating rows with empty cells.
  • Remove Constant Columns: Removes columns that contain constant values across all rows.

Installation

You can install PyCSVDataCleaner via pip:

pip install PyCSVDataCleaner

Usage

from PyCSVDataCleaner import PyCSVDataCleaner

input_file = 'path_to_your_input_file.csv'

output_file = 'path_to_your_output_file.csv'

PyCSVDataCleaner(input_file, output_file)

Example Output

When running the script, you'll get output in the terminal indicating how many rows and columns were removed or cleaned:

Cleaning file: fine_name.csv

--- Initial Data Info ---
Rows (excluding header): 129971
Columns: 14
Removed 0 duplicate rows.
Removed 107584 rows with missing values.
Removed 1 constant columns.

--- Cleaning Done ---
Final Rows: 22387
Final Columns: 13

Metadata

Release files for PyCSVDataCleaner 0.1.1

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

Built distribution (wheel)

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

Release files / PyCSVDataCleaner-0.1.1-py3-none-any.whl

Download URL PyCSVDataCleaner-0.1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17ace78564d801c34609b1a2036b6908c03d2638159da186f9d63701de281809
BLAKE2b-256 checksum
How to use checksums
1c96708bb60da1a5948737edb8ce237ba1ce426090a382dce4729d81e69b3821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Security for PyCSVDataCleaner 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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