how to get the average of a column in python csv code example Example: Get mean of csv column >>> data['mass'].mean() 20651.857142857141