Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ Stats
Class
Stats
example_code/item_031.py:153–158 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
151
152
@dataclass
153
class
Stats:
154
minimum: float
155
maximum: float
156
average: float
157
median: float
158
count: int
159
160
def
get_stats_obj(numbers):
161
return
Stats(
Callers
2
get_stats_obj
Function · 0.85
item_092.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected