Skip to main content

Effortlessly clean and optimize pandas dataframes with precision and ease.

Project description

CleanPandasDF

CleanPandasDF is a powerful Python package designed specifically for data scientists, analysts, and anyone working with data in pandas dataframes. It focuses on automating the data cleaning process, making it more efficient and error-free. From standardizing column names to optimizing memory usage, CleanPandasDF ensures your dataframes are clean, concise, and ready for analysis.

Features

  • Automatic Column Renaming: Transform column names into a consistent format, making them easier to work with in your analysis.
  • Remove Single Cardinality Columns: Automatically identify and remove columns with only one unique value, reducing unnecessary data bulk.
  • Null Value Management: Effortlessly remove rows or columns with high percentages of null values, and apply sophisticated imputation strategies for missing data.
  • Memory Optimization: Reduce the memory footprint of your dataframes, enabling faster processing and analysis without compromising data integrity.
  • Data Quality Insights: Generate reports highlighting potential issues within your data, including outliers, inconsistent data types, and more.
  • Outlier Detection & Handling: Identify and manage outliers in your data, with options for removal, correction, or flagging for further investigation.

Installation

Install CleanPandasDF directly from PyPI:

pip install cleanpandasdf

Quick Start

Getting started with CleanPandasDF is easy. Here's how to clean your dataframe in just a few lines of code:

import pandas as pd
import cleanpandasdf as cpd

# Load your dataframe
df = pd.read_csv('your_data.csv')

# Clean your dataframe with CleanPandasDF
cleaned_df = cpd.clean(df)

# Your dataframe is now clean and ready for analysis!

Advanced Usage

CleanPandasDF offers a range of features for more detailed data cleaning and analysis needs. Here are some examples of advanced usage:

Custom Column Renaming

You can apply custom rules for renaming columns according to your preferences.

cleaned_df = cpd.clean(df, rename_strategy='custom', custom_rules={'oldName': 'newName'})

License

CleanPandasDF is made available under the MIT License. This license allows you to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, subject to the conditions outlined in the LICENSE file.

Contact

If you have any questions, feedback, or want to get involved with CleanPandasDF, don't hesitate to reach out.

Email: [sijopkd@gmail.com]

GitHub: [https://github.com/sijopkd]

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

cleanpandasdf-0.1.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cleanpandasdf-0.1.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleanpandasdf-0.1.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for cleanpandasdf-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e39cda061a344b9ca8aa32e1c62478e9bfd07f7d049e8a80ee84292230947bf1
MD5 edc5622776de85580660b9dad38fcc38
BLAKE2b-256 3050da89a06f80c1d8088a1d7efc8b6ac8eafcb3ad62cce29ec48d8afc4e687d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cleanpandasdf-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for cleanpandasdf-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d93a0532274d75db083e41fe877cce376e14cdb25424d6a598bafc349f19eab2
MD5 7fd1f104a90d02a5eb865f38a8512394
BLAKE2b-256 587d2f52853a8f8c5d4c7e091d7269ce12afa04c94d277c1bac4f14801901aae

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