statistics
A Python 2.* port of 3.4 Statistics Module
Decision gist · record as of 2026-08-14
No. This package is abandoned (last updated 2014-10-16) and targets Python 2.6 and 2.7. Install only if you are maintaining legacy code on those versions that cannot be upgraded; otherwise, use Python 3's built-in statistics module.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 2.6 or 2.7; modern Python versions include statistics in the standard library.
- High install friction due to abandonment: last release was 2014-10-16 and maintenance status is abandoned.
- No updates in over 4320 days.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), so commercial and private use are permitted without restriction.
last release 2014-10-16 (4320 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 212,074 downloads/mo, #9,466 on PyPI
Alternatives
Verify before relying
pip install statistics
import statistics
data = [1, 2, 3, 4, 5]
mean_value = statistics.mean(data)
median_value = statistics.median(data)- Whether Python 2 environments where this package runs remain viable for production use.
- Whether the 3to2 conversion process introduced any numerical accuracy or edge-case handling differences from the official Python 3.4 statistics module.
- Current compatibility with Python 2.6 and 2.7 on modern systems.
What it is and what it does
This package is a backport of Python 3.4's statistics module to Python 2.x, created by converting the official CPython implementation using the 3to2 tool. It provides functions for calculating basic descriptive statistics—mean, median, mode, standard deviation, and variance—on numeric data.
The package was last released on 2014-10-16 and is no longer maintained. With a maintenance status of abandoned and no updates in 4320 days, this backport is effectively obsolete. Installing it serves no practical purpose for new code.
Use it for
- Legacy Python 2.6 or 2.7 codebases that need basic statistical calculations and cannot be upgraded.
- Educational projects demonstrating how to port standard library modules between Python versions using automated tools.
- Historical reference for understanding how the official statistics module was adapted for older Python versions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
This package is abandoned (last updated 2014-10-16) and targets Python 2.6 and 2.7. Install only if you are maintaining legacy code on those versions that cannot be upgraded; otherwise, use Python 3's built-in statistics module.
Install
statistics on PyPI
Before you install
High install friction due to abandonment: last release was 2014-10-16 and maintenance status is abandoned. No updates in over 4320 days.
Requires Python 2.6 or 2.7; modern Python versions include statistics in the standard library.
License in practice
Licensed under Apache License 2.0 (permissive), so commercial and private use are permitted without restriction.
Quickstart
pip install statistics
import statistics
data = [1, 2, 3, 4, 5]
mean_value = statistics.mean(data)
median_value = statistics.median(data)
Verify before relying
- Whether Python 2 environments where this package runs remain viable for production use.
- Whether the 3to2 conversion process introduced any numerical accuracy or edge-case handling differences from the official Python 3.4 statistics module.
- Current compatibility with Python 2.6 and 2.7 on modern systems.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 4,320 days since the last release |
| First released | |
| Downloads | 212,074 / month, #9,466 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 :: DevelopersProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7 |
Evidence: statistics-1.0.3.5.tar.gz
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 › “python 2 statistics functions”
- statisticsProvides basic mathematical statistics functions (mean, median, mode,…
- sqlean.pyA drop-in replacement for Python's sqlite3 module that bundles sqlean…
- cody-specialProvides high-precision implementations of error functions (erf,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also runstats · rasterstats · pytensor-distributions · stockstats · backports.ssl · powerlaw · uncertainties · lovely-numpy · momentchi2 · statsmodels