akanz1/klib

Easy to use Python library of customized functions for cleaning and analyzing data.

What it solves

Data cleaning and exploratory analysis often involve repetitive, boilerplate code: dropping missing values, standardizing column names, converting data types, and plotting correlations or distributions. klib provides ready-made functions that handle these tasks in one or two lines, so you spend less time on plumbing and more time on insights.

How it works

klib is a Python library that operates on pandas DataFrames. It exposes two groups of functions:

  • Cleaning functions (klib.clean): automatically handle common cleaning operations such as removing duplicate rows and empty columns, renaming columns to standardized formats, converting data types to more efficient ones, and dropping or pooling columns with many missing values.
  • Visualization functions (klib.describe): generate informative plots, including categorical feature counts, correlation matrices and heatmaps, interactive correlation plots (via Plotly), distribution plots for numeric features, and missing-value charts.

You call these functions directly on your DataFrame, passing optional arguments to customize the output (e.g., which correlations to show, how many categories to display).

Who it’s for

Anyone working with tabular data in Python using pandas – data analysts, data scientists, and developers – who want to speed up data cleaning and exploratory visualization without writing extensive custom code.

Highlights

  • One-call data cleaning: drop duplicates and empty rows/columns, and auto-adjust data types.
  • Interactive correlation plots with Plotly for deeper exploration.
  • Distribution plots for every numeric feature.
  • Missing-value visualization to quickly spot gaps.
  • Clean column-name conversion standardized to a consistent format.
  • Pool duplicate subsets with minimal information loss.

Related

  • Project
  • Project
  • Project
  • Project