take average of dataframe column code example Example: calculating mean for pandas column df["columnName"].mean()