A Benchmarking and Comparative Analysis of Python Libraries for Data Cleaning: Evaluating Accuracy, Processing Efficiency, and Usability Across Diverse Datasets

A Benchmarking and Comparative Analysis of Python Libraries for Data Cleaning: Evaluating Accuracy, Processing Efficiency, and Usability Across Diverse Datasets

Authors

  • Hariharan Pappil Kothandapani CFA® charterholder, Senior Data Science & Analytics Developer at FHLBC,  MS Quantitative Finance @ Washington University in St Louis https://orcid.org/0009-0006-1768-9328

Keywords:

CleanPy, data cleaning, DataPrep, Pandas, performance evaluation, PyJanitor, usability

Abstract

This research evaluates the performance of four Python libraries—Pandas, CleanPy, DataPrep, and PyJanitor—in addressing common data cleaning tasks across diverse datasets. The study focuses on three metrics: data cleaning accuracy, processing efficiency, and ease of use. Four datasets were used, representing different types of data and common quality issues such as missing values, duplicate records, inconsistent formatting, and outliers. These datasets included customer information, sales transactions, sensor data, and financial transactions. Pandas achieved the highest accuracy in tasks such as missing value imputation, duplicate removal, formatting correction, and outlier detection. However, it required more complex coding. CleanPy and DataPrep, while slightly less accurate, provided user-friendly interfaces and required less code, making them effective for routine cleaning tasks. DataPrep also excelled in processing efficiency, often completing tasks faster than the other libraries. PyJanitor, extending Pandas’ functionality, offered a good balance between advanced features and ease of use. The findings highlight the strengths and limitations of each library. Pandas is recommended for users who prioritize accuracy and can handle its complexity. CleanPy and DataPrep are suitable for users needing efficient and straightforward solutions with minimal coding. PyJanitor is ideal for those seeking enhanced capabilities without the full complexity of Pandas. This research aids data practitioners in selecting the most appropriate tool for their data cleaning needs, enhancing the accuracy and efficiency of data preparation.

Downloads

Published

2021-01-08

How to Cite

Kothandapani, H. P. (2021). A Benchmarking and Comparative Analysis of Python Libraries for Data Cleaning: Evaluating Accuracy, Processing Efficiency, and Usability Across Diverse Datasets. Eigenpub Review of Science and Technology, 5(1), 16–33. Retrieved from https://studies.eigenpub.com/index.php/erst/article/view/73

Issue

Section

Articles
Loading...