pandas and NumPy 3 · NumPy

Compute statistics along an axis

Average each column (axis 0) or each row (axis 1).

a.mean(axis=0)
a.std(axis=1)
a.sum()

Official pandas and NumPy 3 documentation

More numpy commands

All numpy commands · pandas and NumPy 3 cheatsheet

Was this page helpful?