This PyPI package provides a backport of the Python 3.4 `statistics` module for Python 2.x environments. It offers functions for calculating mathematical statistics of numeric (real-valued) data, mirroring the functionality introduced in Python 3.4's standard library. For Python 3.4 and newer, the `statistics` module is built directly into Python and this PyPI package is not needed and generally should not be installed.
pip install statisticsVerified import paths — ran on the pinned version, not inferred.
Calculate basic statistics (mean, median, mode, standard deviation) from a list of numeric data. This example code uses the `statistics` module, which is built-in for Python 3.4+ and provided by the PyPI package for Python 2.x. It's assumed the appropriate version of Python (3.4+ built-in or Python 2 with the PyPI package) is in use.
For Python 3.4 and later, *do not* `pip install statistics`. Simply `import statistics` to use the built-in standard library module.
Ensure you are using the standard library `statistics` module by avoiding `pip install statistics` on Python 3. If it was installed, uninstall it with `pip uninstall statistics`.
Migrate your project to Python 3.4+ and use its built-in `statistics` module.
Uninstall the PyPI package: `pip uninstall statistics`. Then, ensure your Python environment is 3.8 or newer and try again; `fmean` will be available from the built-in module.
For Python 2.x or Python < 3.4, install the PyPI package: `pip install statistics`. For Python 3.4+, this error should not occur, as `statistics` is built-in; verify your Python version and environment.
If on Python 3.8+, uninstall the PyPI `statistics` package (`pip uninstall statistics`) to ensure you're using the built-in, more recent version. If on an older Python version, you may need to manually calculate or upgrade your Python version to access newer features.
No dependency data recorded yet.