2018-10-01から1ヶ月間の記事一覧
import numpy as np #昇順の場合 np.sort(x) #降順の場合 np.sort(x)[::-1] 【参考】 [Python]Numpyデータの並べ替え - Qiita
weights = np.ones_like(data)/(len(data)) plt.hist(data,bins=10,weights=weights) plt.show() 【参考】 python - plotting histograms whose bar heights sum to 1 in matplotlib - Stack Overflow