pyjanitor extends pandas with functions for cleaning, transforming and preparing tabular data. It is designed to make common preprocessing tasks easier to express, helping users construct readable analytical workflows instead of writing repetitive data manipulation code.
The library supports method chaining, allowing a sequence of transformations to be expressed as a single, logically ordered pipeline. This approach can make complex data preparation operations easier to inspect, maintain and reproduce.
pyjanitor is useful for dealing with inconsistent column names, missing observations, differently structured tables and datasets that need reshaping before analysis. It also provides more specialised operations for combining datasets according to conditions that go beyond conventional equality-based joins.
This is free and open source software.
Key Features
- Extend pandas DataFrames with additional cleaning and transformation methods.
- Method chaining for constructing sequential data-processing pipelines.
- Standardise column and index names through configurable cleaning rules.
- Remove empty rows and columns and handle missing values.
- Select, rename, reorder and transform columns using expressive operations.
- Reshape DataFrames between wide and long forms using pivot_longer and pivot_wider.
- Conditional joins supporting equality, inequality and range-based matching.
- Aggregate matched values through join_agg operations.
- Combine values from multiple columns using coalescing and related functions.
- Convert supported date and timestamp representations.
- Identify and process duplicate records.
- Transform column values and derive additional analytical variables.
- Support selected data-preparation workflows involving feature and target columns.
- Interoperate with existing pandas analytical operations and data structures.
Website: github.com/pyjanitor-devs/pyjanitor
Support:
Developer: pyjanitor-devs
License: MIT License
pyjanitor is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Python Data Analysis | |
|---|---|
| pandas | High-level building block for doing practical, real world data analysis |
| NumPy | Core package for scientific computing with Python |
| SciPy | Ecosystem for mathematics, science, and engineering |
| Polars | DataFrame interface on top of an OLAP Query Engine |
| statsmodels | Statistical modeling and econometrics in Python |
| Dask | Advanced parallelism for analytics |
| Orange | Component-based framework for machine learning and data mining |
| Modin | Drop-in replacement for pandas |
| Vaex | Fast visualization of big data |
| AWS DW | Extends the power of pandas library |
| yt | Multi-code Toolkit for Analyzing and Visualizing Volumetric Data |
| HoloViews | Make Data Analysis and Visualization Seamless |
| datatable | Manipulate 2-dimensional tabular data structures |
| xarray | Work with labelled multi-dimensional arrays and datasets |
| pyjanitor | Extend pandas with readable data-cleaning functions |
| Optimus | Agile Data Preparation Workflows |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.