Skip to main content

AM_filler

Automatic Missing Value Filler - Fill missing values in datasets intelligently with one line of code.

Python 3.8+ License: MIT

🚀 Overview

AM_filler is a Python library that automatically detects column types and fills missing values using the best strategy — without any user configuration. It saves time and prepares datasets for ML/DL tasks in one line of code.

Distribution Logic

Why AM_filler?

Feature sklearn/PyCaret AM_filler
Choose imputation strategy Manual Automatic
Handle text columns Limited Built-in
Configuration required Yes None
One-line usage No Yes

📦 Installation

# Clone the repository
git clone https://github.com/yourusername/AM_filler.git
cd AM_filler

# Install in development mode
pip install -e .

⚡ Quick Start

from am_filler import AMFiller
import pandas as pd

# Your DataFrame with missing values
df = pd.read_csv("your_data.csv")

# One line to fill all missing values!
df_clean = AMFiller().fit_transform(df)

That's it! AM_filler automatically:

  • Detects column types (numeric, categorical, text)
  • Chooses the best imputation strategy
  • Fills all missing values
  • Logs what was done

🧠 How It Works - The Logic

AM_Filler uses intelligent algorithms to determine how to fill missing data:

1. Numeric Data (Intelligence)

It checks the distribution of data before deciding:

  • Normal Distribution: Uses MEAN.
  • Skewed / Outliers: Uses MEDIAN.

(See the graph above for visual representation)

2. Context-Aware Text Filling

Unlike other libraries that drop text or fill with "Missing", AM_Filler uses context-aware templates:

  • Description: "Information not available."
  • Feedback: "No review provided."
  • etc.

3. Categorical Data

  • Uses MODE (Most frequent value).

📁 Project Structure

AM_filler/
├── am_filler/
│   ├── __init__.py      # Public API exports
│   ├── core.py          # Main AMFiller class
│   ├── numeric.py       # Numeric imputation (smart mean/median)
│   ├── categorical.py   # Categorical imputation (mode)
│   ├── text.py          # Text imputation (sentences)
│   └── utils.py         # Helper functions
├── examples/
│   └── test_notebook.ipynb # Interactive Demo!
├── docs/
│   └── images/          # Documentation assets
├── README.md
├── pyproject.toml
└── setup.py

🧪 Running Tests

# Install test dependencies
pip install pytest

# Run all tests
pytest tests/ -v

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for am-filler 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for am-filler 1.0.0
File Size Uploaded
am_filler-1.0.0.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for am-filler 1.0.0
File Interpreter ABI Platform
am_filler-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / am_filler-1.0.0.tar.gz

Download URL am_filler-1.0.0.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0680f2770b12a3110fff4a70afa947d5ca6cc9608723e0e9bc509902ff4c6223
BLAKE2b-256 checksum
How to use checksums
a1f6d8584f531cc529411b18f9dbd5c4bc2aea69924187e749beb494a6520e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / am_filler-1.0.0-py3-none-any.whl

Download URL am_filler-1.0.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e24c3ff8be67e76f493163025659ce7543b8f1f30abe0d4d652d19ba8471ccb
BLAKE2b-256 checksum
How to use checksums
3d3ba5ce4ccf941c889b00dd962f3641fb3acc0ca63da757a7155441774b67b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page