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