sklearn-pandas
Pandas integration with sklearn
Decision gist · record as of 2026-08-14
No. The project is abandoned (last release 2021-05-08, last commit 2023-06-08) with no active maintenance. While the MIT License is permissive and install friction is low, the lack of updates means it may break with newer versions of scikit-learn, pandas, or numpy. For new projects, consider actively maintained alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel.
- However, the project is abandoned—last release was 2021-05-08 and last commit 2023-06-08.
- No active maintenance means bug fixes or compatibility updates are unlikely.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions, making it legally safe to adopt for most projects.
last release 2021-05-08 (1924 days) · last repo commit 2023-06-08 · 2,844 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 205,933 downloads/mo, #9,580 on PyPI
Alternatives
Verify before relying
pip install sklearn-pandas
from sklearn_pandas import DataFrameMapper
import pandas as pd
import sklearn.preprocessing
data = pd.DataFrame({'pet': ['cat', 'dog'], 'children': [4., 6]})
mapper = DataFrameMapper([
('pet', sklearn.preprocessing.LabelBinarizer()),
(['children'], sklearn.preprocessing.StandardScaler())
])
mapper.fit_transform(data)- Compatibility with current versions of scikit-learn, pandas, numpy, and scipy—last release predates many recent major versions
- Whether the package works with modern Python versions (requires_python field is empty in metadata)
What it is and what it does
sklearn-pandas provides a DataFrameMapper class that acts as a bridge between pandas DataFrames and scikit-learn's transformers. Instead of manually extracting columns, applying transformations, and reassembling arrays, you define a list of (column_selector, transformer, options) tuples, and the mapper handles the plumbing—selecting columns from your DataFrame, passing them through sklearn transformers, and combining the results back into a feature matrix.
The mapper supports flexible column selection (single columns, multiple columns, or callable selectors), custom naming of output features via aliases, prefixes, and suffixes, and automatic tracking of transformed feature names. It integrates directly into sklearn pipelines and works with both fit and transform operations. The four runtime dependencies—scikit-learn, scipy, pandas, and numpy—are standard in the ML stack, so installation is straightforward.
Use it for
- Preprocessing mixed-type DataFrames by applying different transformers to different columns before feeding them to a classifier
- Building reproducible feature engineering pipelines that map raw DataFrame columns through standardization and encoding in a single object
- Tracking which original DataFrame columns produced which transformed features for model interpretability and debugging
- Dynamically selecting columns at fit time using callables to handle datasets with unknown or variable column sets
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The project is abandoned (last release 2021-05-08, last commit 2023-06-08) with no active maintenance. While the MIT License is permissive and install friction is low, the lack of updates means it may break with newer versions of scikit-learn, pandas, or numpy. For new projects, consider actively maintained alternatives.
Install
sklearn-pandas on PyPI
Before you install
Low install friction with a pure-Python wheel. However, the project is abandoned—last release was 2021-05-08 and last commit 2023-06-08. No active maintenance means bug fixes or compatibility updates are unlikely.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it legally safe to adopt for most projects.
Quickstart
pip install sklearn-pandas
from sklearn_pandas import DataFrameMapper
import pandas as pd
import sklearn.preprocessing
data = pd.DataFrame({'pet': ['cat', 'dog'], 'children': [4., 6]})
mapper = DataFrameMapper([
('pet', sklearn.preprocessing.LabelBinarizer()),
(['children'], sklearn.preprocessing.StandardScaler())
])
mapper.fit_transform(data)
Verify before relying
- Compatibility with current versions of scikit-learn, pandas, numpy, and scipy—last release predates many recent major versions
- Whether the package works with modern Python versions (requires_python field is empty in metadata)
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesscikit-learnscipypandasnumpy |
| Maintenance | Abandoned 1,924 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 205,933 / month, #9,580 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: sklearn_pandas-2.2.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pandas dataframe to sklearn transformer”
- sklearn-pandasBridges pandas DataFrames and scikit-learn by mapping DataFrame…
- sklearndfWraps scikit-learn estimators to return pandas DataFrames instead of…
- category-encodersTransforms categorical variables into numeric representations using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also sklearndf · datasieve · pandas · skrub · woodwork · featuretools · gspread-pandas · pandavro · gspread-dataframe · pandas-read-xml