import pandas as pd # dataframe library
import matplotlib.pyplot as plt # plot data
import numpy as np # N-dim object supportb
# do ploting inline
%matplotlib inline
data = [10,20,30,40,50,60]
df = pd.DataFrame(data, columns=['Numbers'])
df.head
<bound method NDFrame.head of Numbers 0 10 1 20 2 30 3 40 4 50 5 60>
df['Numbers'].mean()
35.0
from scipy import stats
stats.trim_mean(df['Numbers'].tolist(), 0.3)
35.0
np.average(df['Numbers'].tolist(), weights=[0.4] * 6)
35.0