2016-07-27 86 views
1

任何想法如何打開盒子陰謀的異常值? 或發送鏈接的那種=「盒子」的文件,因爲我沒有去過能夠找到它輪到異常值boxplot在python

代碼是:

df9=df.ix[Month+"-2015":Month+"-2015"] 
    df9=df9.rename(columns={'hour_mean': "2015"}) 


    x=pd.concat([df1['2004'],df2['2005'],df3['2006'],df4['2007'],df5['2008'],df6['2012'],df7['2013'],df8['2014'],df9['2015']],axis=1) 


    ax=x.plot(kind="box") 

由於其繪製了一系列系列:似乎是做箱子情節的唯一方法。所以它繪製了2004年和2005年的圖表。

X的樣子:

Date 2004 2005 2006 2007 2008 
01/12/2004 00:00 9.8    
01/12/2004 01:00 4.5    
01/12/2004 02:00 2.7    
01/12/2004 03:00 5.7    
01/12/2004 04:00 10.7     
01/12/2004 05:00 10.2     
01/12/2004 06:00 11.3     
01/12/2004 07:00 7.3    
01/12/2004 08:00 7.2    
01/12/2004 09:00 6.6    
01/12/2004 10:00 9.7    
01/12/2004 11:00 1.7    
01/12/2004 12:00 3.3    
01/12/2004 13:00 8.8    
01/12/2004 14:00 5.4    
01/12/2004 15:00 8.5    
01/12/2004 16:00 1.9    
01/12/2004 17:00 3.1    
01/12/2004 18:00 6.1    
01/12/2004 19:00 -4.1     
01/12/2004 20:00 4.8    
01/12/2004 21:00 2.1    
01/12/2004 22:00 2.6    

回答

0

有你在pyplot試圖

ax=x.plot(kind="box", showfliers=False) 

離羣值被稱爲傳單。檢查這doc