Skip to main content

A Python package for data analysis and visualization using Pandas, NumPy, Matplotlib, and Seaborn.

Project description

readme

ksprepro 📊

ksprepro is a lightweight and easy-to-use Python library built to accelerate Exploratory Data Analysis (EDA) and preliminary dataset inspection for data science projects. It wraps essential Pandas, NumPy, Seaborn, and Matplotlib utilities to help you quickly understand the structure, quality, and relationships within your dataset.


✨ Features

  • ✅ Quick DataFrame summary: shape, datatypes, missing values, and statistics
  • ✅ Visualize correlation matrix with heatmaps
  • ✅ Detect outliers using the IQR method
  • ✅ Plot numeric feature distributions
  • ✅ Report missing values as proportions
  • ✅ Get value counts for all categorical columns

📦 Installation

bash pip install ksprepro

Since this is a custom library, clone or copy the source code into your project directory or package it using setuptools if needed.

bash

Clone this repository or include the file directly

git clone https://github.com/yourusername/ksprepro.git

In your Python project:

from ksprepro import df_summary, missing_report, correlation_matrix, outlier_summary, plot_distributions, value_counts_all

🧪 How to Use

  1. df_summary(df) Provides an overall summary of the DataFrame including shape, data types, missing values, and descriptive statistics.

import pandas as pd from ksprepro import df_summary

df = pd.read_csv("your_data.csv") df_summary(df)

  1. missing_report(df) Returns a Series with the proportion of missing values in each column (sorted descending).

from ksprepro import missing_report

missing_report(df)

  1. correlation_matrix(df) Plots a heatmap of correlation coefficients for all numeric features in the DataFrame.

from ksprepro import correlation_matrix

correlation_matrix(df)

  1. outlier_summary(df) Returns a count of outliers per numeric column using the IQR method.

from ksprepro import outlier_summary

outlier_summary(df)

  1. plot_distributions(df) Displays histograms of all numeric columns in the DataFrame.

from ksprepro import plot_distributions

plot_distributions(df)

  1. value_counts_all(df) Returns a dictionary with value counts for all object (categorical) columns.

from ksprepro import value_counts_all

value_counts_all(df)

🧑‍💻 Developer Keerthisri Kuntam Artificial Intelligence & Data Science | MERN & Web Dev Enthusiast

📜 License This project is licensed under the MIT License. Feel free to use and modify!

🙌 Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.

🧠 Future Features Advanced outlier detection (Z-score, Isolation Forest)

Interactive plots using Plotly

Automatic report generation using pandas-profiling or sweetviz

Let me know if you'd like help setting this up as a proper Python package

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ksprepro-0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

ksprepro-0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ksprepro-0.2.tar.gz.

File metadata

  • Download URL: ksprepro-0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ksprepro-0.2.tar.gz
Algorithm Hash digest
SHA256 bb8667d9add4ca2e1d03e001e17fb9810f937582963743e6c8c6542cc9803e4c
MD5 a1906c145687dbb1cf7b1a0639aabdd7
BLAKE2b-256 ed32a8ff4f7aedecbbe446baf5d2707ba0f55503ccc3157ac1f720c198cf2a68

See more details on using hashes here.

File details

Details for the file ksprepro-0.2-py3-none-any.whl.

File metadata

  • Download URL: ksprepro-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ksprepro-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6bc0baf5d78b81427a121a67e7054239aa99883ef7f58cd35001ad5a2f9f2a7e
MD5 5400ae0c03a914e4bffcfbdf92e63996
BLAKE2b-256 1862e321e80b7d28e9ef6667652b632f666243a7a7f539d13258d4ea87d4e2bb

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