[英]How to use decimals in seaborn.distplot()?
在我的代碼中,我試圖學習數據的分布。 我的數據如下:
18.86
19.86
18.98
18.31
18.76
17.78
17.05
16.75
...
有沒有辦法 plot 這些值作為 distplot() 只接受切片和整數?
代碼:
import seaborn as sns
x = [18.86,19.86,18.98,18.31,18.76,17.78,17.05,16.75]
ax = sns.distplot(x)
Distplot 接受參數系列、一維數組或列表。
https://seaborn.pydata.org/generated/seaborn.distplot.html了解更多詳情。
始終遵循官方文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.