自学新手想请问一下大家用dataFrame转成Series 在取平均要怎么算
怎么跑都不对Orz
====================================
import pandas as pd
data=pd.DataFrame({
"name":["Amy","Bob", "Charles"],
"salary":["30000","40000","50000"]
})
salaries=data["salary"]
print("薪水的平均值",salaries.mean())
============================================
这样算出来是100001333350000.0
Orz
截图 https://imgur.com/a/BRZPnzV