Statistics Classes
statistics.StatisticsError()
Represent a statistics-specific invalid data or parameter error. It subclasses ValueError; catch it when a statistical operation cannot be defined for the supplied data.
Formal Syntax & Structure
python syntaxpython
statistics.StatisticsError(*args)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| args | object | Positional exception arguments, used to initialize args. |
Return Value
StatisticsError
Exception instance, which may be raised or caught.
Working Example
Example Snippetpython
import statisticsprint(issubclass(statistics.StatisticsError, ValueError))