mapply
Sensible multi-core apply function for Pandas
Decision gist · record as of 2026-08-14
Yes, if you apply custom Python functions to large Pandas DataFrames and want a lightweight, tunable alternative to Dask. The low dependency count, active maintenance, and permissive license make it a safe choice. Requires Python 3.11+; verify it works on your OS (fork vs. spawn behavior) and that your workload benefits from parallelization (overhead is not free for small datasets).AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Low friction: pure Python wheel with five runtime dependencies (pathos, multiprocess, psutil, tqdm, pandas).
- Actively maintained with recent commits and stable production status.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-02-23 (172 days) · last repo commit 2026-08-01 · 89 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 87,449 downloads/mo, #13,798 on PyPI
Alternatives
Verify before relying
pip install mapply
import pandas as pd
import mapply
mapply.init(n_workers=-1, chunk_size=100)
df = pd.DataFrame({"A": list(range(100))})
df["squared"] = df.A.mapply(lambda x: x**2)- Whether the package works reliably on Windows (fork vs. spawn multiprocessing behavior on different OS).
- Performance gains relative to Pandas' built-in Numba engine for specific workload types.
- Memory overhead when processing very large DataFrames with many workers.
What it is and what it does
mapply wraps Pandas' apply method to run operations in parallel across multiple CPU cores. Instead of processing a DataFrame sequentially, it splits the work into chunks, assigns them to worker processes from a shared queue, and collects results—allowing irregular workloads to finish faster when some chunks are more expensive than others. It uses pathos for multiprocessing (which handles complex Python objects better than the standard library) and tqdm for progress tracking.
The package sits between lightweight (but rigid) solutions like pandarallel and heavier frameworks like Dask. You configure it once with init(), specifying worker count, chunk size, and queue depth, then call .mapply() on Series or DataFrame columns as you would .apply(). It avoids unnecessary multiprocessing overhead for small datasets and lets you tune parallelism for your specific workload.
Use it for
- Apply expensive transformations (e.g., NLP, image processing) to millions of rows in a DataFrame without rewriting code.
- Speed up feature engineering pipelines where different rows have variable computation cost.
- Process large CSV or database query results in parallel without converting to Dask or Spark.
- Parallelize custom Python functions on Pandas Series when Numba is not applicable.
- Benchmark and tune multiprocessing behavior for your specific hardware and workload.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you apply custom Python functions to large Pandas DataFrames and want a lightweight, tunable alternative to Dask.
The low dependency count, active maintenance, and permissive license make it a safe choice. Requires Python 3.11+; verify it works on your OS (fork vs. spawn behavior) and that your workload benefits from parallelization (overhead is not free for small datasets).
Install
mapply on PyPI
Before you install
Low friction: pure Python wheel with five runtime dependencies (pathos, multiprocess, psutil, tqdm, pandas). Actively maintained with recent commits and stable production status.
Requires Python 3.11 or later.
License in practice
BSD-3-Clause is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install mapply
import pandas as pd
import mapply
mapply.init(n_workers=-1, chunk_size=100)
df = pd.DataFrame({"A": list(range(100))})
df["squared"] = df.A.mapply(lambda x: x**2)
Verify before relying
- Whether the package works reliably on Windows (fork vs. spawn multiprocessing behavior on different OS).
- Performance gains relative to Pandas' built-in Numba engine for specific workload types.
- Memory overhead when processing very large DataFrames with many workers.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagespathosmultiprocesspsutiltqdmpandas |
| Maintenance | Actively maintained 172 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,449 / month, #13,798 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: mapply-0.2.0-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 › “multicore dataframe processing”
- mapplyProvides a lightweight, customizable multi-core apply function for…
- swifterSwifter applies functions to DataFrames and Series using automatic…
- pandarallelPandarallel parallelizes pandas DataFrame operations across multiple…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pandarallel · para · swifter · window-ops · modin · dask · numbagg · dask-geopandas · p-tqdm · dask-cudf-cu12