mean()
mean()
La fonction mean() calcule la moyenne des éléments d'un tableau donné le long d'un axe spécifié.
Syntaxe de mean()

Paramètres de mean()
notes : Le tableau numpy.
axis : L'axe le long duquel la moyenne est calculée. Par défaut, la moyenne est calculée sur l'ensemble du tableau (axe None).

Pour calculer la moyenne le long des colonnes, on utilise axis=0, et pour calculer la moyenne le long des lignes, on utilise axis=1.

Voir aussi : all(), any(), append(), count(), enumerate(), extend(), filter(), float() format() input(), int(), isdigit(), isinstance(), items(), join(), endswith(), list(), map(), max(), mean(), min(), pop(), range(), len(), startswith(), zip(), type(), get(), symmetric_difference(), keys(), difference()
Numpy : arange(), array(), delete(), hsplit(), hstack(), linspace(), logical_and(), logical_or(), polyfit()
Pandas : concat(), concatenate(), describe(), dict(), drop_duplicates(), dropna(), fillna(), from_dict(), groupby(), head(), iloc, info(), insert(), isin(), melt(), merge(), pivot_table(), read_csv(), read_excel(), rename(), where()
N'hésitez pas à consulter nos formations sur cette page.