what does mean in Python programming? It’s the average, but Python doesn’t include it by default.
Easiest way:
```python
from statistics import mean
print(mean([3, 6, 9])) # 6.0
```
Numpy’s version is better for big data, but stats module is fine for small stuff.
Also, pandas has `.mean()` if you’re working with tables!
Easiest way:
```python
from statistics import mean
print(mean([3, 6, 9])) # 6.0
```
Numpy’s version is better for big data, but stats module is fine for small stuff.
Also, pandas has `.mean()` if you’re working with tables!
