python calculate mean of dataframe column code example Example: mean of a column pandas df["Column"].mean()