np.percentile(a,0.4) 這里應該是40吧
python計算分位數(shù)pandas 和 numpy中都有計算分位數(shù)的方法蕊温,pandas中是quantile膘盖,numpy中是percentile 兩個方法其實沒什么區(qū)別衬潦,用法上稍微不同踏堡,quanti...
np.percentile(a,0.4) 這里應該是40吧
python計算分位數(shù)pandas 和 numpy中都有計算分位數(shù)的方法蕊温,pandas中是quantile膘盖,numpy中是percentile 兩個方法其實沒什么區(qū)別衬潦,用法上稍微不同踏堡,quanti...